Fix scheduler for cloud run #46
Workflow file for this run
This file contains hidden or 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: code checks | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - '**.py' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.ipynb' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - '**.py' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.ipynb' | |
| jobs: | |
| run-code-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a | |
| with: | |
| # Install a specific version of uv. | |
| version: "0.7.20" | |
| enable-cache: true | |
| - name: "Set up Python" | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: 'app/package-lock.json' | |
| - name: Install app dependencies | |
| run: | | |
| cd app | |
| npm ci | |
| - name: Install dependencies and check code | |
| run: | | |
| source .venv/bin/activate | |
| pre-commit run --all-files | |
| - name: pip-audit (gh-action-pip-audit) | |
| uses: pypa/gh-action-pip-audit@v1.1.0 | |
| with: | |
| virtual-environment: .venv/ | |
| ignore-vulns: | | |
| GHSA-4xh5-x5gv-qwph |