Skip to content

Commit ed60d83

Browse files
committed
Improve continuous integration
1 parent 6946bce commit ed60d83

File tree

8 files changed

+654
-629
lines changed

8 files changed

+654
-629
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/document.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
name: release
2-
31
on:
42
release:
53
types: [created]
6-
workflow_dispatch:
7-
84
jobs:
9-
build:
5+
release:
106
runs-on: ubuntu-latest
117
steps:
128
- uses: actions/checkout@v2
13-
- name: Configure
14-
uses: actions/setup-python@v2
9+
- uses: actions/setup-python@v2
1510
with:
16-
python-version: 3.9
17-
- name: Install
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install poetry
21-
poetry install
22-
- name: Run
23-
run: |
24-
poetry publish --build -u __token__ -p "${PYPI_TOKEN}"
11+
python-version: '3.10'
12+
- run: pip install poetry
13+
- run: poetry install
14+
- run: poetry publish --build -u __token__ -p $PYPI_TOKEN
2515
env:
26-
PYPI_TOKEN: ${{secrets.PYPI_TOKEN}}
16+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
17+
- run: poetry run poe document
18+
- uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
publish_dir: ./documentation/module/_build/html
22+
publish_branch: documentation
23+
force_orphan: true

.github/workflows/style.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
name: test
2-
31
on:
42
push:
5-
branches: [ main ]
3+
branches:
4+
- main
65
pull_request:
7-
branches: [ main ]
8-
96
jobs:
10-
build:
7+
test:
118
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
action:
12+
- style
13+
- lint
14+
- test
15+
- coverage
1216
steps:
1317
- uses: actions/checkout@v2
14-
- name: Configure
15-
uses: actions/setup-python@v2
18+
- uses: actions/setup-python@v2
1619
with:
17-
python-version: 3.9
18-
- name: Install
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install poetry
22-
poetry install
23-
- name: Run
24-
run: |
25-
poetry run poe test
20+
python-version: '3.10'
21+
- uses: actions/cache@v2
22+
id: cache
23+
with:
24+
path: ~/.cache/pypoetry/virtualenvs
25+
key: ${{ hashFiles('poetry.lock') }}
26+
- run: pip install poetry
27+
- run: poetry install
28+
if: steps.cache.outputs.cache-hit != 'true'
29+
- run: poetry run poe ${{ matrix.action }}

0 commit comments

Comments
 (0)