Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Fix ValueError (#18) #44

Fix ValueError (#18)

Fix ValueError (#18) #44

Workflow file for this run

name: Python package
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
name: "run tox"
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
env:
CODECOV_TOKEN: "ec0bfe65-87df-4df5-b794-228c3b32ed96"
run: tox
package:
name: "Build & verify package"
runs-on: "ubuntu-latest"
needs: [test]
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v4"
with:
python-version: "3.11"
- name: "Install pep517 and twine"
run: "python -m pip install pep517 twine"
- name: "Build package"
run: "python -m pep517.build --source --binary ."
- name: "List result"
run: "ls -l dist"
- name: "Check long_description"
run: "python -m twine check dist/*"
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}