Skip to content

ci: do not build oldest python on macos #434

ci: do not build oldest python on macos

ci: do not build oldest python on macos #434

Workflow file for this run

name: Continuous Integration
on:
schedule:
- cron: "0 0 * * 3"
push:
branches:
- main
pull_request:
branches:
- main
paths:
- .github/workflows/cis.yml
- "src/**"
- "tests/*"
- pyproject.toml
- tox.ini
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tools
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Linting
env:
TOXENV: lint
run: |
tox
tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
toxenv: py38
- python-version: "3.9"
toxenv: py39
- python-version: "3.10"
toxenv: py310
- python-version: "3.11"
toxenv: py311
- python-version: "3.12"
toxenv: py312
steps:
- uses: actions/checkout@v4
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- 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
python -m pip install tox
- name: Test
env:
TOXENV: ${{ matrix.toxenv }}
run: |
tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: github.event_name != 'schedule'
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella
fail_ci_if_error: true