Skip to content

Pre-commit

Pre-commit #1

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Latest commit
env:
CACHE_VERSION: 1
DEFAULT_PYTHON: "3.13"
PRE_COMMIT_HOME: ~/.cache/pre-commit
VENV: venv
on:
schedule:
- cron: "2 4 * * 0" # weekly
workflow_dispatch:
push:
# pull_request:
jobs:
# Check shellscripts
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Check out committed code
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
test-publishing:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
needs:
- cache

Check failure on line 34 in .github/workflows/verify.yml

View workflow run for this annotation

GitHub Actions / Latest commit

Invalid workflow file

The workflow is not valid. .github/workflows/verify.yml (Line: 34, Col: 9): Job 'test-publishing' depends on unknown job 'cache'. .github/workflows/verify.yml (Line: 35, Col: 9): Job 'test-publishing' depends on unknown job 'prepare'.
- prepare
- coverage
- mypy
steps:
- name: Check out committed code
uses: actions/checkout@v4
- name: Install pypa/build
run: |
. venv/bin/activate
uv pip install build
- name: Build a binary wheel and a source tarball
run: |
. venv/bin/activate
python3 -m build
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
password: ${{ secrets.testpypi_token }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true