forked from MycroftAI/skill-hello-world
-
-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (38 loc) · 1.14 KB
/
gh_pages_coverage.yml
File metadata and controls
47 lines (38 loc) · 1.14 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: Publish Coverage to gh-pages
on:
push:
branches:
- dev
workflow_dispatch:
permissions:
contents: write # Required to push to gh-pages
jobs:
test-and-publish-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install python3-dev swig libssl-dev portaudio19-dev libpulse-dev libfann-dev
python -m pip install build wheel uv
uv pip install --system -r test/requirements.txt
- name: Install repo
run: |
uv pip install --system .
- name: Run tests and collect coverage
run: |
coverage run -m pytest test/
coverage html
rm ./htmlcov/.gitignore
- name: Deploy coverage report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./htmlcov
publish_branch: gh-pages