forked from EGCETSII/decide_django_2
-
Notifications
You must be signed in to change notification settings - Fork 2
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 EGCETSII#32 from Penyagolosa-3/postproc-isamunval
Postproc isamunval
- Loading branch information
Showing
6 changed files
with
533 additions
and
68 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,48 +1,48 @@ | ||
name: Python application | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
pyversion: ['3.5','3.8'] | ||
services: | ||
postgres: | ||
image: postgres:10.8 | ||
env: | ||
POSTGRES_USER: decide | ||
POSTGRES_PASSWORD: decide | ||
POSTGRES_DB: decide | ||
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@v1 | ||
- name: Set up Python ${{matrix.pyversion}} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{matrix.pyversion}} | ||
- name: psycopg2 prerequisites | ||
run: sudo apt-get install libpq-dev | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install codacy-coverage | ||
- name: Run migrations | ||
run: cd decide;python manage.py migrate | ||
- name: Run tests postproc | ||
run: cd decide;coverage run --branch --source=. ./manage.py test postproc --keepdb; coverage xml; | ||
- name: Run tests visualizer | ||
run: cd decide;coverage run --branch --source=. ./manage.py test visualizer --keepdb; coverage xml; | ||
- name: Codacy Coverage Reporter | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
|
||
name: Python application | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
pyversion: ['3.5','3.8'] | ||
services: | ||
postgres: | ||
image: postgres:10.8 | ||
env: | ||
POSTGRES_USER: decide | ||
POSTGRES_PASSWORD: decide | ||
POSTGRES_DB: decide | ||
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@v1 | ||
- name: Set up Python ${{matrix.pyversion}} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{matrix.pyversion}} | ||
- name: psycopg2 prerequisites | ||
run: sudo apt-get install libpq-dev | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install codacy-coverage | ||
- name: Run migrations | ||
run: cd decide;python manage.py migrate | ||
- name: Run tests postproc | ||
run: cd decide;coverage run --branch --source=. ./manage.py test postproc --keepdb; coverage xml; | ||
- name: Run tests visualizer | ||
run: cd decide;coverage run --branch --source=. ./manage.py test visualizer --keepdb; coverage xml; | ||
- name: Codacy Coverage Reporter | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
|
||
coverage-reports: decide/coverage.xml |
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 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 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
Oops, something went wrong.