Move GH Actions to ruff #126
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: runbook tests and stuff | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
# Export env vars for later steps, normal export doesn't work | |
- run: echo PATH=./.hermit/bin:$PATH >> $GITHUB_ENV | |
# Setup the working dir to run runbook commands | |
- run: echo WORKING_DIR="$(mktemp -d -t runbook-XXXX)" >> $GITHUB_ENV | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: initialize folders | |
# Runbook command comes from .hermit/bin/runbook | |
run: runbook init --skip-confirmation=true | |
- name: Ruff formatting | |
run: pre-commit run ruff-format | |
- name: Ruff linting | |
run: pre-commit run ruff | |
- run: just test | |
- run: echo "🍏 This job's status is ${{ job.status }}." |