Skip to content

fix ci

fix ci #2

Workflow file for this run

name: Run tests
on:
push:
branches:
- "3.x/*"
pull_request:
branches:
- "3.x/*"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
name: Run linters
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Just
uses: extractions/setup-just@v1
with:
just-version: 1.14.0
- name: Setup environment to run tox
run:
just setup-runner
- name: Run linters
run:
just lint
testing:
name: Run tests
runs-on: ${{ matrix.os }}
needs: linting
strategy:
fail-fast: true
matrix:
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.8', 'pypy3.9', 'pypy3.10' ]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install Just
uses: extractions/setup-just@v1
with:
just-version: 1.14.0
- name: Setup environment to run tox
run:
just setup-runner
- name: Run tests
run:
just test-on-python-version ${{ matrix.python_version }}