Skip to content

Commit

Permalink
Use pytest to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Oct 17, 2022
1 parent ce1dde2 commit 226a9ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/project_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# 1) List all caches for this repo using the Github CLI: gh api -H "Accept: application/vnd.github+json" /repos/Lightmatter/django-hydra/actions/caches
# 2) Delete each cache id from the list, e.g.: gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/Lightmatter/django-hydra/actions/caches/1


name: Project CI
on: pull_request

Expand Down Expand Up @@ -45,7 +44,6 @@ jobs:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}


- run: poetry env use ${{ steps.setup_python.outputs.python-version }}

- name: Install dependencies if cache does not exist
Expand Down Expand Up @@ -79,7 +77,7 @@ jobs:
- run: poetry run playwright install
working-directory: ./sampleapp

- run: poetry run coverage run --source='.' manage.py test
- run: poetry run coverage run --source='.' pytest
working-directory: ./sampleapp

services:
Expand All @@ -94,4 +92,4 @@ jobs:
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
- 5432:5432
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/.github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
run: poetry install --no-interaction --no-root

- run: poetry run playwright install
- run: poetry run coverage run --source='.' manage.py test
- run: poetry run coverage run --source='.' pytest
- run: poetry run ./manage.py collectstatic --noinput

services:
Expand Down

0 comments on commit 226a9ba

Please sign in to comment.