sintonia/.github/workflows/project.yml

42 lines
933 B
YAML
Raw Normal View History

name: Project
on:
2023-02-27 12:34:17 +01:00
workflow_dispatch:
push:
2023-03-15 17:14:51 +01:00
branches: [main, stable]
pull_request:
types: [opened, reopened, synchronize, edited]
2023-03-15 17:14:51 +01:00
branches: [main, stable]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2023-02-24 13:38:21 +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
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-project-pre-commit-pip-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
${{ runner.os }}-project-pre-commit-pip
- uses: pre-commit/action@v3.0.0
test-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
2022-06-09 09:50:36 +02:00
with:
python-version: "3.x"
- run: make all
working-directory: tools