Update build.yml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.11] | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install X11 on macOS | |
if: runner.os == 'macOS' | |
run: | | |
brew reinstall gcc # needed to have gfortran available | |
brew install xquartz | |
- name: Compile XFOIL | |
run: ./compile.sh | |
- name: Install dependencies for test | |
run: pip install pytest numpy | |
- name: Tests | |
run: python -m pytest tests | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: xfoil-${{ runner.os }} | |
path: ./bin |