Skip to content

Commit

Permalink
Add separate Makefile target to run tests without starting a Docker c…
Browse files Browse the repository at this point in the history
…ontainer
  • Loading branch information
tillprochaska committed May 21, 2024
1 parent c935c47 commit 41b2c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: docker compose run --rm shell make lint
- name: Run the tests
# Some tests rely on the package being installed
run: docker compose run --rm shell bash -c "make install && make tests"
run: docker compose run --rm shell bash -c "make install && make test-local"
- name: Build a distribution
run: docker compose run --rm shell python3 setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ dev:
python3 -m pip install -q -r requirements-dev.txt

test:
docker compose run --rm shell make test-local

test-local:
pytest --cov=servicelayer

lint:
Expand Down

0 comments on commit 41b2c0e

Please sign in to comment.