version: 0.6.4 #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Workflow | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| jobs: | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| runs-on: ubuntu-latest | |
| container: python:${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: python --version | |
| - run: | | |
| pip install -r requirements.txt | |
| pip install -r extra.txt | |
| pip install --upgrade setuptools | |
| if: matrix.python-version != '2.7' | |
| - run: | | |
| pip install -r requirements.py2.txt | |
| pip install -r extra.py2.txt | |
| pip install --upgrade setuptools | |
| if: matrix.python-version == '2.7' | |
| - run: | | |
| pip install pytest | |
| pytest | |
| - run: python setup.py test | |
| if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "3.13", "latest"]'), matrix.python-version) }} | |
| - run: | | |
| pip install black | |
| black . --check | |
| if: matrix.python-version == '3.13' | |
| - run: | | |
| pip install twine build | |
| python -m build | |
| cp README.md lib/README.md | |
| cd lib && python -m build && cd .. | |
| python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* | |
| python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} lib/dist/* | |
| env: | |
| PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
| PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |