-
Notifications
You must be signed in to change notification settings - Fork 12
64 lines (61 loc) · 1.44 KB
/
main.yaml
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
name: main
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pip3 install flake8 wheel
- run: python3 setup.py sdist bdist_wheel
- run: flake8 .
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist
test:
needs: [build]
strategy:
matrix:
python-version:
- 3.10.1
- 3.9.9
- 3.8.12
- 3.7.12
- 3.6.15
- 2.7.18
- pypy-3.8
- pypy-2.7
fail-fast: false
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v2
with:
name: dist
path: dist
- run: pip install dist/iso4217-*.whl
- run: |
set -e
pushd /tmp
python -m iso4217.test
popd
fakeinv:
if: "github.event_name == 'push'"
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: dist
path: dist
- run: pip3 install dist/iso4217-*.whl sphinx-fakeinv
- run: mkdir -p /tmp/fakeinv/
- run: sphinx-fakeinv iso4217 > /tmp/fakeinv/objects.inv
- run: touch /tmp/fakeinv/.nojekyll
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/fakeinv
force_orphan: true