diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 6 | ||||
-rw-r--r-- | .github/workflows/release.yml | 23 |
2 files changed, 27 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f63125..f3833be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -13,6 +13,7 @@ jobs: | |||
13 | os: | 13 | os: |
14 | - ubuntu-latest | 14 | - ubuntu-latest |
15 | - macos-latest | 15 | - macos-latest |
16 | |||
16 | python-version: | 17 | python-version: |
17 | - 3.5 | 18 | - 3.5 |
18 | - 3.6 | 19 | - 3.6 |
@@ -26,5 +27,6 @@ jobs: | |||
26 | with: | 27 | with: |
27 | python-version: ${{ matrix.python-version }} | 28 | python-version: ${{ matrix.python-version }} |
28 | 29 | ||
29 | - run: pip install -U pip setuptools wheel mock nose pytest | 30 | - run: | |
30 | - run: python setup.py release | 31 | pip install tox |
32 | tox -e tests,release | ||
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f47c613 --- /dev/null +++ b/.github/workflows/release.yml | |||
@@ -0,0 +1,23 @@ | |||
1 | name: release | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | tags: | ||
6 | - 'release-*' | ||
7 | |||
8 | jobs: | ||
9 | build: | ||
10 | runs-on: ubuntu-latest | ||
11 | |||
12 | steps: | ||
13 | - uses: actions/checkout@v2 | ||
14 | |||
15 | - uses: actions/setup-python@v2 | ||
16 | with: | ||
17 | python-version: 3.8 | ||
18 | |||
19 | - env: | ||
20 | TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }} | ||
21 | run: | | ||
22 | pip install tox | ||
23 | tox -e tests,release,upload | ||