-
-
Notifications
You must be signed in to change notification settings - Fork 74
47 lines (36 loc) · 944 Bytes
/
master.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
name: master
on:
push:
branches:
- master
release:
types:
- created
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.6.x"
- name: Requirements
run: make requirements
- name: Build
run: make build
- name: Formatting check (black)
run: make check-fmt
- name: Lint Python check (pylint)
run: make check-lint-python
- name: Lint reStructuredText check (rst-lint)
run: make check-lint-rst
- name: Type check (mypy)
run: make check-type
- name: Test
run: make test
- name: Publish a Python distribution to PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}