Merge pull request #1 from erev0s/manifest_dec_and_cli_flags #4
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.13 | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
poetry config virtualenvs.create false | |
- name: Run unittest tests | |
run: poetry run python -m unittest discover -s tests | |
- name: Build with Poetry | |
run: | | |
poetry build | |
- name: Publish | |
run: | | |
pip install twine | |
twine upload dist/* | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |