-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (36 loc) · 983 Bytes
/
lint.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
41
42
43
# Linting and format-checking workflow for the repository.
#
# Behavior in this file, other than setup, is controlled in the file
# .pre-commit-config.yaml in the top directory of the repository.
#
# Any automations should be added to that file. This check runs over the entire
# repository, not just changes.
name: Lint repository
on:
pull_request:
push:
workflow_dispatch:
schedule:
# Run every Sunday at 03:53 UTC
- cron: 53 3 * * 0
jobs:
lint:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
python-version: ["3.12"]
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
shell: bash -l {0}
run: python -m pip install nox
- name: Run pre-commit via nox
shell: bash -l {0}
run: |
nox -s lint