Skip to content

python: Drop python 3.8 and add 3.12 to CI test suite #253

python: Drop python 3.8 and add 3.12 to CI test suite

python: Drop python 3.8 and add 3.12 to CI test suite #253

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Pre-Commit
uses: pre-commit/[email protected]
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Poetry Install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.3.2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true
- name: Cache Project Dependencies
uses: actions/cache@v2
id: cache-deps
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- name: Install Project
run: poetry install --no-interaction
if: steps.cache-deps.outputs.cache-hit != 'true'
- name: Pytest
run: poetry run pytest