Skip to content

chore: add Python 3.10-3.13 #55

chore: add Python 3.10-3.13

chore: add Python 3.10-3.13 #55

Workflow file for this run

name: Tests + Code Analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
tests:
name: Unit Tests
runs-on: ${{ matrix.platform }}
if: github.event_name == 'pull_request'
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
exclude:
- platform: ubuntu-latest
python-version: 3.6
- platform: ubuntu-latest
python-version: 3.7
include:
- platform: ubuntu-22.04
python-version: 3.6
- platform: ubuntu-22.04
python-version: 3.7
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
env:
PLATFORM: ${{ matrix.platform }}
run: tox