-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (41 loc) · 1.11 KB
/
ci.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
name: repoaudit CI
on:
pull_request:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
working-directory: ./repoaudit
run: poetry install
- name: Check flake8
working-directory: ./repoaudit
run: poetry run flake8 .
- name: Check black
working-directory: ./repoaudit
run: poetry run black --check --diff .
- name: Check isort
working-directory: ./repoaudit
run: poetry run isort -c .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
cd repoaudit && poetry install
- name: Test repoaudit
run: |
cd repoaudit && poetry run repoaudit --help