-
Notifications
You must be signed in to change notification settings - Fork 39
59 lines (46 loc) · 1.18 KB
/
main.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
54
55
56
57
58
59
name: build
on:
push:
branches: [ 'main' ]
tags: [ '*' ]
pull_request:
branches: [ 'main' ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.15
- name: Install pipenv
run: pip install pipenv
- name: Lint
run: _CI/scripts/lint.py
- name: Test
run: _CI/scripts/test.py
- name: Build
run: _CI/scripts/build.py
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
environment:
name: release
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9.15
- name: Install pipenv
run: pip install pipenv
- name: Upload
run: _CI/scripts/upload.py
env:
PYPI_UPLOAD_USERNAME: ${{ secrets.PYPI_UPLOAD_USERNAME }}
PYPI_UPLOAD_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASSWORD }}