Python package #7
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: Python package | |
on: | |
schedule: | |
- cron: '0 4 * * 1' | |
# Pull requests and pushes will not trigger a run if the only changes are on workflows other than this one | |
pull_request: | |
paths-ignore: | |
- '.github/workflows/**' | |
- '!.github/workflows/ci-workflow.yml' | |
push: | |
paths-ignore: | |
- '.github/workflows/**' | |
- '!.github/workflows/ci-workflow.yml' | |
branches: | |
- 'master' | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install --upgrade pip setuptools wheel tox | |
- name: Lint | |
run: tox -e lint --recreate | |
- name: Typecheck | |
run: tox -e typecheck --recreate | |
- name: Unit tests | |
run: tox -e unittest --recreate | |
- name: Build wheel | |
run: make wheel |