Skip to content

CI/CD

CI/CD #208

Workflow file for this run

name: CI/CD
on:
push:
pull_request:
# Run daily at 0:01 UTC
schedule:
- cron: '1 0 * * *'
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade '.[test]'
python -m pip list
- name: Lint with Flake8
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
run: |
flake8 --exclude=tests/* --ignore=E501,W503
- name: Test with pytest
run: |
pytest
- name: Report coverage with Codecov
if: github.event_name == 'push' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1