diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d5457c..be7e8b8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,6 +3,10 @@ name: Release on: release: types: [published] + workflow_dispatch: + +env: + FORCE_COLOR: "1" permissions: contents: read @@ -26,6 +30,7 @@ jobs: python -m build twine check dist/* - name: Publish packages to PyPI + if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9c6e88a..184037a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,6 +8,9 @@ on: - cron: '5 1 * * *' # every day at 01:05 workflow_dispatch: +env: + FORCE_COLOR: "1" + concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -40,8 +43,8 @@ jobs: - name: install run: | pip install --upgrade pip wheel - pip install -e ".[tests]" pip install "dvc[testing] @ git+https://github.com/iterative/dvc" + pip install -e ".[tests]" - name: lint timeout-minutes: 10 @@ -56,3 +59,9 @@ jobs: with: file: ./coverage.xml fail_ci_if_error: false + + - name: build package + run: | + pip install --upgrade build twine + python -m build + twine check dist/*