Skip to content

feat: update github testing #300

feat: update github testing

feat: update github testing #300

Workflow file for this run

name: Tests
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { name: Linux, python: '3.11', os: ubuntu-latest }
- { name: Windows, python: '3.11', os: windows-latest }
- { name: Mac, python: '3.11', os: macos-latest }
- { name: '3.12', python: '3.12', os: ubuntu-latest }
- { name: '3.11', python: '3.11', os: ubuntu-latest }
- { name: '3.10', python: '3.10', os: ubuntu-latest }
- { name: '3.9', python: '3.9', os: ubuntu-latest }
- { name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest }
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/tests.txt
python -m pip install -r requirements/build.txt
- name: Install package
run: |
flit install
- name: Test with pytest
run: |
pytest