Merge pull request #58 from gip-inclusion/fix/security.txt #200
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DJANGO_SETTINGS_MODULE: config.settings_test | |
PYTHONPATH: . | |
services: | |
postgres: | |
image: postgres:14-alpine | |
env: | |
POSTGRES_USER: giw | |
POSTGRES_PASSWORD: giwsecret | |
POSTGRES_DB: giw | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Setup virtual environment | |
run: | | |
uv venv venv | |
echo "venv/bin" >> $GITHUB_PATH | |
- name: 🌍 Install dependencies | |
run: uv pip sync requirements.txt | |
- name: 📄 Copy empty .env.test to .env | |
run: | | |
cp .env.test .env | |
- name: ✨ Black, isort, flake8 | |
run: | | |
make quality | |
env: | |
USE_VENV: 1 | |
- name: 🚧 Check pending migrations | |
run: | | |
django-admin makemigrations --check --dry-run --noinput | |
- name: 🤹 Run the unit tests | |
run: | | |
make test-unit | |
env: | |
DJANGO_DEBUG: True | |
USE_VENV: 1 |