Skip to content

Bump rpds-py from 0.19.0 to 0.20.1 #66

Bump rpds-py from 0.19.0 to 0.20.1

Bump rpds-py from 0.19.0 to 0.20.1 #66

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
WORKERS: 3
SECRET_KEY: "Insecure secret key"
DEBUG: "TRUE"
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: localhost
DB_PORT: 5432
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run migrations
run: python src/manage.py migrate
- name: Run tests
run: pytest -n $WORKERS --cov=src/ --cov-report=html --import-mode=importlib
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: laaraujo/django-api-template
- name: Make coverage report available as github artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/
retention-days: 7