Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: Run tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
# https://github.com/actions/setup-python
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pip install pytest pytest-cov
# https://pytest-cov.readthedocs.io/en/latest/readme.html
# https://github.com/astral-sh/ruff-action
- name: Run ruff
uses: astral-sh/ruff-action@v3
with:
version: latest