Skip to content

add workflow for release + release v0.0.1 #15

add workflow for release + release v0.0.1

add workflow for release + release v0.0.1 #15

Workflow file for this run

name: CI
####################################
# Start the job on all push and PR #
####################################
on:
pull_request:
branches: [master, main]
types: [synchronize, opened, reopened, ready_for_review]
# push:
# branches: [master, main]
jobs:
precommits:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install pre-commit
pre-commit install
- name: Run pre-commits
run: |
pre-commit run --all-files
# pre-commit run --from-ref origin/main --to-ref HEAD
# run: |
# BASE_COMMIT_ID=$(git rev-parse origin/main)
# pre-commit run --from-ref ${{ env.BASE_COMMIT_ID }} --to-ref HEAD