mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
Added concurrency groups with cancel-in-progress to validate.yml, lint.yml, and auto-tag.yml workflows. This ensures that when multiple commits are pushed quickly: - Only the latest validation/lint run continues - Older runs are automatically cancelled - Saves CI minutes and provides faster feedback Release workflow intentionally excluded (each tag is unique). Impact: More efficient CI usage, faster feedback on rapid commits.
39 lines
834 B
YAML
39 lines
834 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ruff:
|
|
name: "Ruff"
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
|
|
with:
|
|
version: "0.9.3"
|
|
|
|
- name: Install requirements
|
|
run: scripts/bootstrap
|
|
|
|
- name: Lint check
|
|
run: scripts/lint-check
|