Skip to content

Commit

Permalink
using docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Mar 12, 2024
1 parent 6286dcc commit 73a2198
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/nens-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# If you want this file to be left alone, add "nens_meta_leave_alone" in
# all caps somewhere in this file in a comment.
#
# ... which we want for now as we have a docker-compose based setup...
# NENS_META_LEAVE_ALONE

name: nens-meta
on:
Expand All @@ -28,15 +30,17 @@ jobs:
with:
python-version: 3.11
- uses: pre-commit/[email protected]
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Build/pull docker
run: |
docker-compose build
docker-compose pull
- name: Test
run: pytest
run: docker-compose run web pytest
- name: Coverage
run: |
coverage run -m pytest
coverage xml
coverage report --format markdown >> $GITHUB_STEP_SUMMARY
coverage report --fail-under 10 --format text
docker-compose run web coverage run -m pytest
docker-compose run web coverage xml
docker-compose run web coverage report --format markdown >> $GITHUB_STEP_SUMMARY
docker-compose run web coverage report --fail-under 10 --format text
### Extra lines below are preserved ###

0 comments on commit 73a2198

Please sign in to comment.