2022-04-25 15:27:10 +02:00
|
|
|
name: Project
|
|
|
|
|
|
|
|
on:
|
2023-02-27 12:34:17 +01:00
|
|
|
workflow_dispatch:
|
2022-04-25 15:27:10 +02:00
|
|
|
push:
|
2024-01-13 12:50:51 +01:00
|
|
|
branches: [main, stable-*]
|
2022-04-25 15:27:10 +02:00
|
|
|
pull_request:
|
|
|
|
types: [opened, reopened, synchronize, edited]
|
2024-01-13 12:50:51 +01:00
|
|
|
branches: [main, stable-*]
|
2022-04-25 15:27:10 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-commit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-21 21:30:18 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-24 13:38:21 +01:00
|
|
|
|
2023-12-20 05:08:55 +01:00
|
|
|
- uses: actions/setup-python@v5
|
2022-06-09 09:50:36 +02:00
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
2022-09-01 19:31:33 +02:00
|
|
|
|
2024-01-19 18:05:01 +01:00
|
|
|
- uses: actions/cache@v4
|
2022-09-01 19:31:33 +02:00
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-project-pre-commit-pip-${{ hashFiles('.pre-commit-config.yaml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-project-pre-commit-pip
|
|
|
|
|
2024-02-10 00:37:02 +01:00
|
|
|
- uses: pre-commit/action@v3.0.1
|
2022-04-25 15:27:10 +02:00
|
|
|
|
|
|
|
test-tools:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-21 21:30:18 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-20 05:08:55 +01:00
|
|
|
- uses: actions/setup-python@v5
|
2022-06-09 09:50:36 +02:00
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
2022-04-25 15:27:10 +02:00
|
|
|
- run: make all
|
|
|
|
working-directory: tools
|