| 1 |
name: Build and test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ main ] |
| 6 |
workflow_dispatch: |
| 7 |
branches: [ main ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
build: |
| 11 |
|
| 12 |
runs-on: ${{ matrix.os }} |
| 13 |
strategy: |
| 14 |
fail-fast: false |
| 15 |
matrix: |
| 16 |
python-version: ["3.9", "3.10", "3.11"] |
| 17 |
os: |
| 18 |
- ubuntu-latest |
| 19 |
- macos-latest |
| 20 |
|
| 21 |
|
| 22 |
steps: |
| 23 |
- uses: actions/checkout@v3 |
| 24 |
- name: Set up Python ${{ matrix.python-version }} |
| 25 |
uses: actions/setup-python@v4 |
| 26 |
with: |
| 27 |
python-version: ${{ matrix.python-version }} |
| 28 |
- name: Install dependencies |
| 29 |
run: | |
| 30 |
python -m pip install --upgrade pip |
| 31 |
python -m pip install --upgrade pytest |
| 32 |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
| 33 |
- name: Build |
| 34 |
run: make pynauty |
| 35 |
- name: Test |
| 36 |
run: | |
| 37 |
make minimal-test |
| 38 |
make tests |