Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 19 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
os: [ubuntu-18.04]
python-version: [3.9]
os: [ubuntu-latest]

steps:
- name: Checkout
Expand All @@ -28,7 +28,7 @@ jobs:
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
run: tox
run: tox -vv

release:
name: Release
Expand All @@ -39,25 +39,21 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Setup
run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi

- name: Set up python
uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install setuptools
run: python -m pip install --upgrade setuptools wheel twine

- name: Release
python-version: '3.x'
- name: Install twine
run: |
pip install twine
pip install wheel
pip install setuptools
- name: Upload wheel
if: ${{ github.ref == 'refs/heads/main' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_NON_INTERACTIVE: 1
run: |
python setup.py bdist_wheel
twine upload dist/*.whl
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
universal = 1

[metadata]
description-file = README.md
version = 1.0.1
description_file = README.md
version = 1.0.2