chore: Updated deps (Python 3.12!) #10
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: Code and dependencies checks | |
on: push | |
jobs: | |
code-style-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Check code with ruff | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: check | |
dependencies-and-code-tests: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: gwardiahub | |
POSTGRES_PASSWORD: root | |
POSTGRES_USER: root | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: 1.8 | |
- name: Check dependencies with poetry | |
run: | | |
poetry install | |
poetry update | |
poetry check | |
- name: Run Django tests | |
run: poetry run python manage.py test |