-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (52 loc) · 1.29 KB
/
main.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
47
48
49
50
51
52
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Check formatting
run: |
pip3 install riot
riot -v run -s black -- --check .
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install project
run: pip install .
- name: Run command
run: |
python -m pip install riot
riot -v run -s mypy
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Run command
run: |
python -m pip install riot
riot -v run -s flake8
test:
runs-on: ubuntu-22.04
container: ghcr.io/kyle-verhoog/envier/test:9a354f873fd50fbd439ef0bfa1e59893107d7282
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
pip install riot==0.18.0 # last version that supports Python 2.7, 3.5
riot -v run -p3.6 smoke-test
riot -v run -p3.6 tests