Skip to content

Commit

Permalink
Merge pull request #144 from stealthrocket/examplestest
Browse files Browse the repository at this point in the history
Don't test ./examples by default
  • Loading branch information
chriso authored Mar 27, 2024
2 parents df098fd + ebc43a3 commit 4463c21
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ jobs:
- run: make dev
- run: make test

examples:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- run: make dev
- run: make exampletest

format:
runs-on: ubuntu-latest
strategy:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ typecheck:
$(PYTHON) -m mypy src tests

unittest:
$(PYTHON) -m pytest
$(PYTHON) -m pytest tests

exampletest:
$(PYTHON) -m pytest examples

coverage: typecheck
coverage run -m unittest discover
Expand Down
1 change: 0 additions & 1 deletion tests/examples

This file was deleted.

0 comments on commit 4463c21

Please sign in to comment.