-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (31 loc) · 925 Bytes
/
analyze.yml
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: Analyze
# On all pushes to PRs or pushes to specific branches. Not on ALL pushes in general because it will
# double if pushing to a PR.
on:
pull_request:
push:
branches:
- 'master'
- 'dev'
permissions:
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
with:
path: ~/.cache/pip
key: ${{ runner.os}}-pip-${{ hashFiles('**/.*-requirements.txt') }}
restore-keys: |
${{ runner.os}}-pip-
- name: Analyze
run: ./misc/actions/analyze.sh