Simplify the CI tests using the Makefile

This commit is contained in:
Donncha Ó Cearbhaill
2024-09-30 12:39:21 +02:00
parent 5dfa0153ee
commit 69fb8c236f
7 changed files with 67 additions and 65 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Run Python Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10'] # , '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
make install
make test-requirements
- name: Test with pytest
run: |
make test-ci