Skip to content

Move pre-commit hooks to shared repo #1

Move pre-commit hooks to shared repo

Move pre-commit hooks to shared repo #1

name: "build-and-release"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
tagged-release: # TODO: Maybe make this conditional so it can run on pull requests

Check failure on line 9 in .github/workflows/build-and-release.yml

View workflow run for this annotation

GitHub Actions / build-and-release

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-release.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: "Tagged Release"
needs: ci
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'
- name: Install dependencies
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --all-extras
- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: poetry run pytest
coverageLocations: ${{github.workspace}}/dist/coverage.info:lcov
# - name: Create Github release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# files: |
# dist/*.whl
# dist/*.tar.gz
- name: Build and publish package
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
continue-on-error: true