Skip to content

Update dev dependencies to the latest versions #129

Update dev dependencies to the latest versions

Update dev dependencies to the latest versions #129

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
test-core:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8.17", "3.9.17", "3.10.12"]
steps:
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install -U pytest pytest-cov
- name: Run tests
run: PYTHONPATH=src pytest --no-cov tests/test_core
test-linux:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: ["3.11.4"]
experimental: [false]
include:
- python-version: "3.12.0-rc.1"
experimental: true
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.5.1
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Use python ${{ matrix.python-version }} for poetry
run: poetry env use ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install
- name: Run pre-commit linters and checks
run: poetry run pre-commit run --all-files
if: ${{ matrix.python-version == '3.11.4' }}
- name: Check typing with mypy
run: poetry run mypy --strict
- name: Run tests
run: poetry run pytest tests