diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release-pypi.yml | 12 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 9 |
2 files changed, 11 insertions, 10 deletions
diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 3701184..36326e3 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -1,6 +1,7 @@ name: Upload Tags to PyPI on: + workflow_dispatch: push: tags: - v** @@ -11,16 +12,15 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - with: - python-version: "3.x" - - uses: abatilo/actions-poetry@v2.0.0 - name: Install dependencies - run: poetry install --no-root + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - poetry run python setup.py sdist bdist_wheel - poetry run twine upload --skip-existing dist/* + python setup.py sdist bdist_wheel + twine upload --skip-existing dist/* diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f59e744..ee508c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,10 +3,9 @@ name: Run Tests on: workflow_dispatch: pull_request: - types: [opened, reopened] + branches: [master] push: - branches: - - master + branches: [master] paths: - epy.py - tests/** @@ -23,5 +22,7 @@ jobs: - name: Install dev dependencies run: poetry install --no-root - name: Run tests - run: poetry run python -m pytest -vv + run: | + poetry run coverage run --include=epy.py -m pytest -vv tests + poetry run coverage report |