-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 941 Bytes
/
pull_requests.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
name: CI actions
on: [pull_request]
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
name: Setup
- name: Install dependencies
run: poetry install
lint:
needs: [install]
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
name: Setup
- name: Check formatting with Black
run: poetry run black --check --diff .
- name: Check imports with isort
run: poetry run isort --check --diff .
- name: Lint with flake8
run: poetry run flake8 . --count --statistics --show-source
test:
needs: [install]
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Dummy test script
run: echo "OK"