Skip to content

Bump actions/setup-python from 4.7.1 to 5.0.0 #271

Bump actions/setup-python from 4.7.1 to 5.0.0

Bump actions/setup-python from 4.7.1 to 5.0.0 #271

Workflow file for this run

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/setup-python@v5.0.0
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/setup-python@v5.0.0
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