Skip to content

Commit

Permalink
Run CI jobs with python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Oct 26, 2022
1 parent 7ee48d9 commit ea25c28
Show file tree
Hide file tree
Showing 4 changed files with 948 additions and 288 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Expand Up @@ -2,23 +2,23 @@ name: Build

on:
push:
branches: [master]
branches: [main]
tags: ['v*']
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
env:
LATEST_PY_VERSION: '3.10'
LATEST_PY_VERSION: '3.11'
COVERAGE_ARGS: '--cov --cov-report=term --cov-report=xml'
XDIST_ARGS: '--numprocesses=auto --dist=loadfile'

jobs:
# Run tests for each supported python version
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
fail-fast: false
services:
nginx:
Expand All @@ -34,7 +34,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1.3
with:
version: 1.2.0a2
virtualenvs-in-project: true

# Start integration test databases
Expand Down Expand Up @@ -71,7 +70,7 @@ jobs:

# Run code analysis checks via pre-commit hooks
analyze:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Expand Up @@ -18,7 +18,7 @@ on:
default: ''

env:
LATEST_PY_VERSION: '3.10'
LATEST_PY_VERSION: '3.11'
XDIST_ARGS: '--numprocesses=auto --dist=loadfile'

jobs:
Expand All @@ -44,7 +44,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1.3
with:
version: 1.2.0a2
virtualenvs-in-project: true

# Start integration test databases
Expand Down Expand Up @@ -80,15 +79,14 @@ jobs:
# Deploy stable builds on tags only, and pre-release builds from manual trigger ("workflow_dispatch")
release:
needs: [test]
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.LATEST_PY_VERSION }}
- uses: snok/install-poetry@v1.3
with:
version: 1.2.0a2
virtualenvs-in-project: true

- name: Set pre-release version
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
Expand All @@ -26,7 +26,7 @@ repos:
- id: flake8
additional_dependencies: [flake8-comprehensions]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.982
hooks:
- id: mypy
files: requests_cache
Expand Down

0 comments on commit ea25c28

Please sign in to comment.