Skip to content

ci: set up dependabot #12

ci: set up dependabot

ci: set up dependabot #12

Workflow file for this run

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@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install requirements
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'
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