chore: clean up pipelines #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
python-version: | ||
- 3.11 | ||
steps: | ||
- 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 setuptools | ||
pip install -r dev/requirements.txt | ||
- name: Test with pytest | ||
run: | | ||
pytest --cov=./ --cov-report=xml | ||
- name: Upload coverage report to codecov | ||
if: matrix.os == ubuntu-latest | ||
Check failure on line 42 in .github/workflows/ci.yaml GitHub Actions / CIInvalid workflow file
|
||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Lint with ruff | ||
if: matrix.os == ubuntu-latest | ||
run: | | ||
ruff check src | ||
- name: Check dependencies with pip-audit | ||
if: matrix.os == ubuntu-latest | ||
run: | | ||
pip-audit |