forked from imcs-compsim/cubitpy
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 801 Bytes
/
Copy pathcode_checks.yml
File metadata and controls
36 lines (34 loc) · 801 Bytes
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
27
28
29
30
31
32
33
34
35
36
name: Code checks
on:
schedule:
- cron: '0 04 * * *'
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
code_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install cubitpy
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Code checks
run: |
pre-commit install --install-hooks
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
SKIP=no-commit-to-branch pre-commit run --all-files
else
pre-commit run --all-files
fi