-
Notifications
You must be signed in to change notification settings - Fork 220
51 lines (47 loc) · 1.16 KB
/
pre-commit.yml
File metadata and controls
51 lines (47 loc) · 1.16 KB
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
41
42
43
44
45
46
47
48
49
50
51
---
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:
timeout-minutes: 10
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
continue-on-error: ${{ matrix.experimental || false }}
strategy:
fail-fast: false
matrix:
python-version:
- '3.10'
- '3.13'
- '3.14'
os:
- windows-latest
- macOS-latest
include:
- python-version: '3.14'
os: ubuntu-latest
- python-version: 3.15-dev
steps:
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: ${{ endsWith(matrix.python-version, '-dev') }}
- name: checkout
uses: actions/checkout@v6
with:
submodules: true
- name: run pre-commit
uses: pre-commit/action@v3.0.1
env:
SKIP: copyright
timeout-minutes: 5