Skip to content

ci

ci #145

Workflow file for this run

name: ci
concurrency:
group: "${{ github.repository }}-${{ github.ref_name }}-${{ github.event_name }}"
cancel-in-progress: true
on:
push:
branches:
- main
schedule:
- cron: "30 1 */7 * *"
# - cron: "*/5 * * * *"
jobs:
self-test:
if: contains(fromJSON('["schedule", "push"]'), github.event_name)
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Bump me
uses: licenseware/bump-version@main
with:
author-name: Licenseware Bot
author-email: contact@licenseware.io
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-key-id: ${{ secrets.GPG_KEY_ID }}
release: ${{ github.event_name == 'schedule' }}
tag: ${{ github.event_name == 'schedule' }}
token: ${{ secrets.GITHUB_TOKEN }}
checks:
if: github.event_name == 'push'
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -U pip pre-commit
- name: Run pre-commit
run: pre-commit run -a