Skip to content

Merge branch 'main' of https://github.com/pt1243/sample-project #74

Merge branch 'main' of https://github.com/pt1243/sample-project

Merge branch 'main' of https://github.com/pt1243/sample-project #74

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
name: Run tests
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests with tox
run: tox -e ${{ matrix.toxenv }}