fix: adjusted links to hpc access in outgoing emails (#140) (#141) #211
Workflow file for this run
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
name: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.10' | |
services: | |
postgres: | |
image: postgres:14.2 | |
env: | |
POSTGRES_DB: hpcaccess | |
POSTGRES_USER: hpcaccess | |
POSTGRES_PASSWORD: hpcaccess | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 10 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_HOST: 0.0.0.0 | |
POSTGRES_PORT: 5432 | |
DATABASE_URL: 'postgres://hpcaccess:[email protected]/hpcaccess' | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install project Python dependencies | |
run: | | |
pip install wheel==0.37.1 | |
pip install -r requirements/local.txt | |
- name: Download icons | |
run: python manage.py geticons | |
- name: Run collectstatic | |
run: python manage.py collectstatic --noinput | |
- name: Run tests | |
run: | | |
coverage run --rcfile=.coveragerc manage.py test -v 2 --settings=config.settings.test | |
coverage xml | |
coverage report | |
- name: Check linting | |
run: flake8 . | |
- name: Check formatting | |
run: make black arg=--check | |
- name: Run Codacy coverage reporter | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |