generated from goraxe/template
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 792 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
name: CI
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ["feature/*"]
pull_request:
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: .pre-commit-config.yaml
- uses: asdf-vm/actions/[email protected]
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]