-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 990 Bytes
/
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
name: CI
on:
push: {}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
linter:
runs-on: ubuntu-22.04
name: linting:python=${{ matrix.python-version }},django=${{ matrix.django }}
strategy:
matrix:
python-version:
- "3.8"
- "3.11"
steps:
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install requirements
run: |
task dev:install
- name: Black
run: black --check typelog
- name: Isort
run: isort --profile black --check typelog
- name: Flake8
uses: py-actions/flake8@v2
- name: Tests
run: task test