-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (26 loc) · 775 Bytes
/
pr.yml
File metadata and controls
32 lines (26 loc) · 775 Bytes
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
name: PR checks
on:
pull_request:
jobs:
linters:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup environment
id: setup-environment
run: |
pip install poetry==1.4.2
poetry install --no-root
- name: Black
if: (!cancelled()) && steps.setup-environment.outcome == 'success' # Run even if other checks fail
run: |
poetry run black --check .
- name: Isort
if: (!cancelled()) && steps.setup-environment.outcome == 'success' # Run even if other checks fail
run: |
poetry run isort --check .