Skip to content

Test CI workflow

Test CI workflow #30

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
container: python:3.12
services:
db:
image: mongo:latest
ports:
- 27017:27017
env:
MONGODB_URI: mongodb://db:27017
DB_NAME: todo-app
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python3.12 -m pip install -r requirements.txt
- name: Lint check
run: |
ruff check
- name: Run tests
run: |
python3.12 manage.py test