-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from arthur-schnitzler/main
tests and some other things
- Loading branch information
Showing
121 changed files
with
1,085 additions
and
56,403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
POSTGRES_DB=pmb | ||
POSTGRES_USER=pmb | ||
POSTGRES_PASSWORD=pmb | ||
POSTGRES_HOST=172.17.0.1 | ||
DEBUG=True | ||
POSTGRES_DB=pmb_play | ||
# NEW_PMB=True | ||
# POSTGRES_HOST=172.17.0.1 | ||
DEBUG=True | ||
POSTGRES_HOST=127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Test | ||
on: | ||
push: | ||
jobs: | ||
test: | ||
name: Test Application | ||
runs-on: ubuntu-latest | ||
env: | ||
POSTGRES_DB: github_actions | ||
services: | ||
postgres: | ||
image: postgres:13 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: github_actions | ||
ports: | ||
- 5432:5432 | ||
# needed because the postgres container does not provide a healthcheck | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }} | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade --upgrade-strategy eager -r requirements_dev.txt | ||
- name: Run migrations | ||
run: | | ||
export NEW_PMB=TRUE | ||
python manage.py migrate | ||
unset NEW_PMB | ||
- name: Run tests | ||
run: coverage run manage.py test -v 3 | ||
- name: Create Coverage Report | ||
run: coverage xml | ||
- name: "Upload coverage to Codecov" | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
file: ./coverage.xml | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,3 +167,4 @@ tmp/ | |
pmb_dump.sql | ||
.secret | ||
play.ipynb | ||
pmb_play_dump.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.