-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqe_speaker-mapping-coverage.yml
More file actions
49 lines (46 loc) · 1.67 KB
/
qe_speaker-mapping-coverage.yml
File metadata and controls
49 lines (46 loc) · 1.67 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
name: "Riksdagen Records: Speaker Mapping Coverage"
on:
pull_request:
branches:
- 'dev'
paths:
- data/**
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-artifacts-${{ github.ref }}
cancel-in-progress: false
jobs:
Estimate-speaker-accuracy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/checkout
- uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/free-up-space
- uses: ./.github/actions/install-dependencies
- name: Calculate Speaker Mapping Coverage
run: |
python quality/qe_speaker-mapping-coverage.py
- name: Add and commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
if [[ `git status quality/estimates/speaker-mapping-coverage/ --porcelain --untracked-files=no` ]]; then
git add quality/estimates/speaker-mapping-coverage/
git commit -m "chore (workflow): update speaker mapping coverage"
else
echo ""
echo "::warning:: WARNING!!! No changes to speaker mapping coverage."
echo " Double check the version nr and everything else is up to date."
echo ""
git commit --allow-empty -m "chore (workflow): no changes to speaker mapping coverage"
fi
- uses: ./.github/actions/pull-push
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}