Skip to content

Merge pull request #6 from kraken-tech/fix-creating-build #28

Merge pull request #6 from kraken-tech/fix-creating-build

Merge pull request #6 from kraken-tech/fix-creating-build #28

Workflow file for this run

---
name: Lint
on:
pull_request: {}
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install venv
run: ./tools/uv sync --locked
- name: Ensure linter is happy
run: ./tools/ci lint
types:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install venv
run: ./tools/uv sync --locked
- name: Ensure mypy is happy
run: ./tools/ci types
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install venv
run: ./tools/uv sync --locked
- name: Ensure code is formatted
run: |
./tools/ci format
git status --porcelain
# Complain if there were changes
if [[ ! -z "$(git status --porcelain)" ]]; then
echo "=========================================="
echo "Found changes!"
echo "Please run ./format before committing code"
echo "=========================================="
git diff
exit 1
fi