-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.22 KB
/
format.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
44
45
46
name: Format 📝
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/format.yml'
- 'pyproject.toml'
- 'hockeygameclock/**'
- 'tests/**'
jobs:
isort:
name: Isort
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.10 and PDM 2.4.9
uses: pdm-project/setup-pdm@v3
with:
python-version: '3.10'
architecture: x64
version: 2.4.9
- name: Install hockeygameclock and development tools
run: pdm install -dG format
- name: Run isort
run: |
pdm run isort --check hockeygameclock
pdm run isort --check tests
black:
name: Black
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.10 and PDM 2.4.9
uses: pdm-project/setup-pdm@v3
with:
python-version: '3.10'
architecture: x64
version: 2.4.9
- name: Install hockeygameclock and development tools
run: pdm install -dG format
- name: Run black
run: |
pdm run black --check hockeygameclock
pdm run black --check tests