Skip to content

Edit README

Edit README #4

Workflow file for this run

name: Tests and Code Checks
on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Start containers
run: docker compose up -d
- name: Test with pytest
run: |
pip install pytest
python -m pytest
- name: Stop containers
if: always()
run: docker compose down
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Lint with Ruff
run: |
pip install ruff
ruff --output-format=github .
continue-on-error: false
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@v1
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable