Skip to content

relink.py: Accept specific directories and/or files to process #22

relink.py: Accept specific directories and/or files to process

relink.py: Accept specific directories and/or files to process #22

Workflow file for this run

name: Run Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
fail-fast: false
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 }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest tests/ -v
- name: Run tests with coverage
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
run: |
pytest tests/ --cov=. --cov-report=xml --cov-report=term
- name: Upload coverage reports
if: success() && matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
continue-on-error: true