Skip to content

Move to poetry

Move to poetry #69

Workflow file for this run

name: 🔮 CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: config.settings_test
PYTHONPATH: .
strategy:
matrix:
python-version: ["3.10", "3.11"]
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: dju
POSTGRES_PASSWORD: djpwd
POSTGRES_DB: djdb
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 🌍 Install dependencies
run: |

Check failure on line 30 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: 📄 Copy empty .env.test to .env
run: |
cp .env.test .env
- name: ✨ Black, isort, flake8 & djlint
run: |
make quality
- 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