diff options
author | benadha <benawiadha@gmail.com> | 2022-02-14 05:37:17 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-02-14 05:37:17 +0700 |
commit | 641feec0625cd3361b4ce7ef23791bc508dfbfc6 (patch) | |
tree | b7eb842afaacc2b609c1f36444648e769f0fcfc0 /.github | |
parent | 74521781ccd232ad23a0ab54a25ff94044c71d73 (diff) | |
download | epy-641feec0625cd3361b4ce7ef23791bc508dfbfc6.tar.gz |
Simplify GA dependencies management
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 |