Skip to content

Update build.yml

Update build.yml #14

Workflow file for this run

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