-
Notifications
You must be signed in to change notification settings - Fork 195
40 lines (40 loc) · 1.04 KB
/
pre-commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: pre-commit
on:
push:
branches:
- master
- stable
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PYWIKIBOT_TEST_RUNNING: 1
PYWIKIBOT_NO_USER_CONFIG: 2
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.13"
- "3.14-dev"
steps:
- name: set up python ${{ matrix.python-version }}
if: "!endsWith(matrix.python-version, '-dev')"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: set up development python ${{ matrix.python-version }}
if: "endsWith(matrix.python-version, '-dev')"
uses: deadsnakes/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: run pre-commit
uses: pre-commit/[email protected]
timeout-minutes: 5
timeout-minutes: 100