-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (41 loc) · 1.03 KB
/
cd.yml
File metadata and controls
51 lines (41 loc) · 1.03 KB
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
name: Continuous integration
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Setup environment
run: |
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
source $HOME/.poetry/env
poetry --version
- name: Install dependencies
run: |
source $HOME/.poetry/env
poetry --version
poetry install
- name: Lint
run: |
source $HOME/.poetry/env
make lint
- name: Test
run: |
source $HOME/.poetry/env
make test
- name: Build package
run: |
source $HOME/.poetry/env
poetry build
- name: Publish to PyPI
run: |
source $HOME/.poetry/env
poetry publish -u __token__ -p ${{ secrets.PYPIPASS }}