Skip to content

Commit 7edfdb7

Browse files
committed
Update versions of pre-commit hooks
Use macos-13 where macos-14 is not supported
1 parent 771c024 commit 7edfdb7

3 files changed

Lines changed: 38 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
os: [ macos-13, macos-14, macos-12 ]
31+
os: [ ubuntu-latest, macos-13, windows-latest ]
3232
runs-on: ${{ matrix.os }}
3333
timeout-minutes: 30
3434
steps:
@@ -61,7 +61,7 @@ jobs:
6161
fail-fast: false
6262
matrix:
6363
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
64-
os: [macos-13, macos-14, macos-12]
64+
os: [ ubuntu-latest, macos-13, windows-latest ]
6565
python: [ '3.10', '3.11']
6666
runs-on: ${{ matrix.os }}
6767
timeout-minutes: 30
@@ -92,3 +92,35 @@ jobs:
9292
run: tox -vv --notest
9393
- name: Run test suite
9494
run: tox --skip-pkg-install
95+
96+
py_3x_proto_25x:
97+
strategy:
98+
fail-fast: false
99+
matrix:
100+
os: [ubuntu-latest, macos-latest, windows-latest]
101+
runs-on: ${{ matrix.os }}
102+
timeout-minutes: 30
103+
steps:
104+
- uses: actions/checkout@v4
105+
with:
106+
fetch-depth: 0
107+
- uses: actions/setup-python@v5
108+
with:
109+
python-version: 3.x
110+
architecture: x64
111+
cache: pip
112+
- name: Install Protoc
113+
uses: arduino/setup-protoc@v3
114+
with:
115+
version: 25.x
116+
repo-token: ${{ secrets.GITHUB_TOKEN }}
117+
- name: install dependencies
118+
run: |
119+
pip install --upgrade pip
120+
pip install -e '.[ci]'
121+
pip --version
122+
pip freeze
123+
- name: Setup test suite
124+
run: tox -vv --notest
125+
- name: Run test suite
126+
run: tox --skip-pkg-install

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ repos:
99
hooks:
1010
- id: black
1111
- repo: https://github.com/charliermarsh/ruff-pre-commit
12-
rev: "v0.2.0"
12+
rev: "v0.6.2"
1313
hooks:
1414
- id: ruff
1515
- repo: https://github.com/asottile/pyupgrade
16-
rev: v3.15.0
16+
rev: v3.17.0
1717
hooks:
1818
- id: pyupgrade
1919
args: [ '--py38-plus' ]
@@ -24,7 +24,7 @@ repos:
2424
args: [ '--only', 'pyproject.toml,tox.ini' ]
2525
verbose: true
2626
- repo: https://github.com/pre-commit/pre-commit-hooks
27-
rev: v4.5.0
27+
rev: v4.6.0
2828
hooks:
2929
- id: check-yaml
3030
- id: end-of-file-fixer

tests/test_proto_topy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import pytest
99
import requests
10+
1011
from proto_topy import (
1112
CompilationFailed,
1213
DelimitedMessageFactory,

0 commit comments

Comments
 (0)