-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.51 KB
/
update-checklist.yml
File metadata and controls
52 lines (44 loc) · 1.51 KB
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
name: CI - tests and update checklist
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test-and-update-checklist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi
- name: Run tests
run: pytest -q
- name: Run latency check (mock)
run: |
pytest -q -m "latency or not -k mock_e2e_latency_under_threshold" || true
- name: Recalculate checklist
run: |
python scripts/update_checklist.py --file checklist.md --recalc
- name: Commit updated checklist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add checklist.md || true
if ! git diff --staged --quiet; then
git commit -m "chore(ci): update checklist.md" || true
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.ref_name }}
else
echo "No checklist changes to commit"
fi