generated from nickderobertis/pypi-sphinx-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 9
69 lines (63 loc) · 1.67 KB
/
package.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
60
61
62
63
64
65
66
67
68
69
name: Test, Build and Push Python Package and Docs
on:
push:
branches:
- master
- alpha
- beta
- "*.*.*"
- "*.*"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, ]
python-version: ["3.8", "3.9", "3.10", ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/lint-and-test
collectTODO:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@master"
- name: "TODO to Issue"
uses: "alstr/[email protected]"
id: "todo"
deploy:
needs: test
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
run: pip install poetry==1.3.2
- uses: bjoluc/semantic-release-config-poetry@v2
with:
pypi_token: ${{ secrets.PYPI_PASSWORD }}
github_token: ${{ secrets.GH_TOKEN }}
coverage:
needs: deploy
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-dependencies
with:
python-version: ${{ matrix.python-version }}
- name: Run coverage and upload to Codecov.io
uses: ./.github/actions/test-coverage
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}