Skip to content

Allow python 3.11 and higher #3

Allow python 3.11 and higher

Allow python 3.11 and higher #3

Workflow file for this run

# runs on pull requests and merges into main
# runs lint and coverage and uploads to codecov
---
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- run: make setup
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
setup-python-dependencies: false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
coverage:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- run: make setup
- run: make lint
if: "startsWith('3.9.', matrix.python-version)"
- run: make coverage
- uses: codecov/codecov-action@v3
if: "startsWith('3.9.', matrix.python-version)"