build: CI/CD pipelines for package, image, and docs #5
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
# Runs pre-commit hooks on pull requests targeting the main branch | |
name: Automated Code Review | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11.2 | |
cache: pip | |
- name: Create Python virtual environment | |
run: "python3 -m venv .venv" | |
- name: Install dependencies | |
run: | | |
bash ./shell_scripts/install_dependencies.sh cli | |
- uses: pre-commit/[email protected] |