Skip to content

refactor: should be an int #78

refactor: should be an int

refactor: should be an int #78

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths:
- "deezy/**"
- "cli/**"
pull_request:
branches: [main]
paths:
- "deezy/**"
- "cli/**"
jobs:
test:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: uv sync --group dev
- name: Run linting with ruff
run: uv run ruff check .
- name: Run tests with pytest
run: uv run pytest --cov=deezy --cov-report=xml
env:
PYTHONPATH: ${{ github.workspace }}
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false