-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (45 loc) · 1.2 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
name: Build
on:
schedule:
# Every Monday at 1PM UTC (9AM EST)
- cron: "0 13 * * 1"
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: [3.7, 3.8, 3.9, 3.10.6, 3.11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setup Packages
run: sh tools/setup.sh
- name: Build Packages
run: sh tools/build.sh
- name: Test Packages
run: sh tools/test_all.sh
- name: Update API Docs
run: sh tools/docs.sh
- name: Report Code Coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: sh tools/codecov.sh
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sh tools/semantic-release.sh
- name: Deploy to PyPi
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: sh tools/deploy.sh