Skip to content

Commit 8a40e71

Browse files
committed
update: workflows
1 parent 205fc11 commit 8a40e71

File tree

2 files changed

+30
-17
lines changed

2 files changed

+30
-17
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.7', '3.8']
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
make init
25+
make requirements
26+
pip install -r requirements-dev.txt
27+
- name: Lint
28+
run: |
29+
make format

.github/workflows/python-package.yml renamed to .github/workflows/publish.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
python-version: ['3.7', '3.8']
15-
16-
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
23-
run: |
24-
make init
25-
make requirements
26-
pip install -r requirements-dev.txt
27-
- name: Lint
28-
run: |
29-
make format
30-
make build
3115
deploy:
3216
name: Deploy
3317
needs: test
@@ -38,7 +22,7 @@ jobs:
3822
uses: actions/setup-python@v2
3923
with:
4024
python-version: 3.8
41-
- name: Upload to PyPI
25+
- name: Publish package
4226
env:
4327
TWINE_USERNAME: __token__
4428
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)