build #50
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: build | |
# Actions that take place on all branches | |
# ----------------- | |
# Control variables (GitHub Secrets) | |
# ----------------- | |
# | |
# (n/a) | |
# | |
# ----------- | |
# Environment (GitHub Environments) | |
# ----------- | |
# | |
# Environment (n/a) | |
on: | |
push: | |
branches: | |
- '**' | |
schedule: | |
# Build daily at 6:02am... | |
- cron: '2 6 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r build-requirements.txt | |
pip install -r requirements.txt | |
- name: Lint | |
run: | | |
pre-commit run --all-files |