-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (36 loc) · 1.15 KB
/
statistics.yml
File metadata and controls
47 lines (36 loc) · 1.15 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
name: Statistics
on:
push:
branches:
- main
workflow_dispatch:
jobs:
statistics:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.13'
- name: Generate statistics
run: |
uv pip install --system -r scripts/coverage/requirements.txt
python scripts/coverage/coverage.py
git fetch origin statistics
git checkout -B statistics origin/statistics
rm -rf docs/*
mkdir -p docs
cp -r _coverage/* docs/
# Commit changes if any instances were modified
git config --global user.name "openMINDS pipeline"
git config --global user.email "support@openmetadatainitiative.org"
git add docs/
git diff --cached --quiet || git commit -m "Dynamic statistics."
git push origin statistics
shell: bash