add workflow for release + release v0.0.1 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |