Skip to content

Commit

Permalink
Add github workflow to run tests and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Oct 17, 2024
1 parent 6d5c991 commit b066610
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pytest-unmagic tests
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Setup
run: |
python --version
pip install --upgrade pip flake8
pip install -e .
- name: Run tests
run: pytest
- name: Check style
run: flake8 src/unmagic/ tests/

0 comments on commit b066610

Please sign in to comment.