Skip to content

Merge pull request #1 from mxstack/docs/improve-readme #7

Merge pull request #1 from mxstack/docs/improve-readme

Merge pull request #1 from mxstack/docs/improve-readme #7

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
uv pip install --system -e ".[test]"
uv pip install --system ruff isort
- name: Run ruff check
run: ruff check src/
- name: Run isort check
run: isort --check src/
- name: Run tests with coverage
run: pytest --cov=mxrepo --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.python-version == '3.13'
with:
file: ./coverage.xml
fail_ci_if_error: false
continue-on-error: true