-
Notifications
You must be signed in to change notification settings - Fork 29
75 lines (69 loc) · 1.65 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright 2023 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# Authors:
# - Paul Scheffler <[email protected]>
# - Thomas Benz <[email protected]>
name: analyze
on:
push:
branches-ignore:
- '__deploy__**'
pull_request:
branches-ignore:
- '__deploy__**'
workflow_dispatch:
branches-ignore:
- '__deploy__**'
jobs:
analyze-contributors:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
-
name: Python Requirements
run: pip install -r requirements.txt
-
name: List contributors
run: scripts/list-contributors | tee contributions.txt
-
name: Upload contributions.txt
uses: actions/upload-artifact@v2
with:
name: contributions
path: contributions.txt
retention-days: 7
analyze-todos:
runs-on: ubuntu-latest
continue-on-error: true
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
-
name: Python Requirements
run: pip install -r requirements.txt
-
name: List todos
run: scripts/list-todos | tee open_todos.txt
-
name: Upload todos.txt
uses: actions/upload-artifact@v2
with:
name: open_todos
path: open_todos.txt
retention-days: 7