Add 2023/24 and 2024/25 protocols to the corpus #49
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |