Bump actions/setup-python from 5.1.0 to 5.1.1 #277
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: | |
push: | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
beefore: | |
name: Pre-test checks | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
task: | |
- 'flake8' | |
- 'towncrier-check' | |
- 'docs' | |
- 'package' | |
steps: | |
# Fetch main branch for comparison, then check out current branch. | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.X | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade setuptools | |
pip install --upgrade tox | |
- name: Run pre-test check | |
run: | | |
tox -e ${{ matrix.task }} | |
python-versions: | |
name: Python compatibility test | |
needs: beefore | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"] | |
include: | |
- experimental: false | |
- python-version: "3.12-dev" | |
experimental: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools | |
python -m pip install tox | |
- name: Test | |
run: | | |
tox -e py |