-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (44 loc) · 1.08 KB
/
python.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
53
---
name: Python
on: push
jobs:
build-n-test:
name: Build and test Python code
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Install Requirements (for Mypy analysis)
run: pip install -r requirements.txt
- name: Install Mypy
run: pip install mypy
- name: Mypy
run: mypy
- name: Save packages as artifacts
uses: actions/upload-artifact@v2
with:
name: packages
path: dist/