Skip to content

Consistent use of _blank #280

Consistent use of _blank

Consistent use of _blank #280

Workflow file for this run

name: build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', "3.11"]
steps:
- name: Start PostgreSQL on Ubuntu
run: |
sudo systemctl start postgresql.service
pg_isready
- name: Create client user
run: |
sudo -u postgres psql --command="CREATE USER client PASSWORD 'not-so-secret django db password'" --command="\du"
sudo -u postgres psql --command="ALTER USER client CREATEDB;" --command="\du"
- name: Edit git settings
run: |
git config --global user.email "github.actions@CI.com"
git config --global user.name "Github Actions"
- name: Checkout repository and submodules
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install flake8 pytest pytest-django
pip install -r requirements/requirements.txt
pip install -r requirements/dev.txt
- name: Lint with flake8
run: |
python -m flake8 client
- name: Test sorting with isort
run: |
python -m isort --verbose --check-only client
- name: Test with pytest
run: |
python -m pytest --cov=client --cov-config=client/.coveragerc --cov-report term-missing client
env:
DJANGO_SUPERUSER_EMAIL: django@test.com
PGDATABASE: django
PGUSER: client
PGPASSWORD: not-so-secret django db password
PGHOST: localhost
PGPORT: 5432
DJANGO_SECRET_KEY: 'django very secret key, honest'
- uses: codecov/codecov-action@v1
with:
token: 8bb2c432-b415-4a43-adab-ff5a9016de64 # not required for public repos