Spaces:
Configuration error
Configuration error
Danila-Pechenev
commited on
Commit
·
8f9ef52
1
Parent(s):
fa592d3
Write main part of `ci.yml`
Browse files- .github/workflows/ci.yml +40 -0
.github/workflows/ci.yml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: CI
|
2 |
+
|
3 |
+
on: [push, pull_request]
|
4 |
+
|
5 |
+
jobs:
|
6 |
+
lint:
|
7 |
+
name: Linter
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- uses: actions/checkout@v3
|
11 |
+
- name: Run linter
|
12 |
+
uses: psf/black@stable
|
13 |
+
mypy:
|
14 |
+
name: Mypy
|
15 |
+
runs-on: ubuntu-latest
|
16 |
+
steps:
|
17 |
+
- uses: actions/checkout@v3
|
18 |
+
- name: Set up Python 3.10
|
19 |
+
uses: actions/setup-python@v4
|
20 |
+
with:
|
21 |
+
python-version: 3.10
|
22 |
+
- name: Install dependencies
|
23 |
+
run: pip install mypy
|
24 |
+
- name: Run mypy
|
25 |
+
run: mypy .
|
26 |
+
test:
|
27 |
+
name: Tests
|
28 |
+
runs-on: ubuntu-latest
|
29 |
+
timeout-minutes: 60
|
30 |
+
steps:
|
31 |
+
- uses: actions/checkout@v3
|
32 |
+
- name: Set up Python 3.10
|
33 |
+
uses: actions/setup-python@v4
|
34 |
+
with:
|
35 |
+
python-version: 3.10
|
36 |
+
- name: Install dependencies
|
37 |
+
run: |
|
38 |
+
pip install
|
39 |
+
- name: Run tests
|
40 |
+
run: pytest
|