Make 3.12 python default and deprecate 3.9 #200
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Main | |
on: | |
push: | |
branches: [ main, nextrelease ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Fix Python 3.13 to alpha 3 as aiohttp will break on later. | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
python-version: ["3.10", "3.11", "3.12", "3.13.0-alpha.3"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest tox | |
pip install -r requirements.txt | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with tox | |
run: | | |
tox -e py-coverage | |
- name: Upload coverage to Codecov | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }} | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml |