-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (42 loc) · 1.29 KB
/
ci-analytics.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
name: Analytics Checks
on:
workflow_call:
pull_request:
paths:
- analytics/**
- .github/workflows/ci-analytics.yml
defaults:
run:
working-directory: ./analytics
jobs:
lint-test:
name: Analytics Lint, Format & Tests
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ACCESS }}
ANALYTICS_SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
ANALYTICS_REPORTING_CHANNEL_ID: ${{ secrets.REPORTING_CHANNEL_ID_TEST }}
ACTION: show-results # show results, but don't post them to slack
steps:
# set up python
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
# install poetry
- uses: Gr1N/setup-poetry@v9
- name: Install analytics package using poetry
run: make install
- name: Check formatters
run: make format-check
- name: Run linting
run: make lint
- name: Run database migrations
run: docker compose down --volumes && make db-migrate
- name: Run tests
run: make test-audit
# Both of these tasks are looking for github and slack auth
# - name: Export GitHub data
# run: make gh-data-export
# - name: Run reports
# run: make sprint-reports