Uses importlib.metadata in favor of pkg_resources #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Quality Assurance | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: A git reference to check out. | |
default: 1.3.x | |
required: true | |
type: string | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.7 # 2023-06-07 | |
- 3.8 # 2024-10 | |
- 3.9 # 2025-10 | |
- "3.10" # 2026-10 | |
- 3.11 # 2027-10 | |
- pypy3.7 | |
- pypy3.8 | |
- pypy3.9 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ inputs.ref || github.ref }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install --upgrade pip setuptools tox | |
- run: tox -e py | |
CodeQL: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ inputs.ref || github.ref }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'python' | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
other: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- environment: doclinks | |
- environment: doctest | |
- environment: linting | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ inputs.ref || github.ref }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- run: python -m pip install --upgrade pip setuptools tox | |
- run: tox -e ${{ matrix.environment }} | |
... |