Skip to content

Commit

Permalink
Added persmissions to TestCoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mysh committed Apr 19, 2024
1 parent 533c6e7 commit 69a9fe9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/TestCoverage.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# prepared with the help of https://github.com/marketplace/actions/python-coverage-comment

name: Test Coverage
on: [pull_request]

jobs:
build:

runs-on: windows-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
Expand All @@ -22,10 +27,13 @@ jobs:
pip install genbadge[coverage]
C:\Miniconda\condabin\conda.bat list
C:\Miniconda\condabin\conda.bat init powershell
- name: Check coverage
- name: Run coverage check
run: |
# Activate the testenv environment
C:\Miniconda\condabin\conda.bat activate base
C:\Miniconda\condabin\conda.bat list
coverage xml -o coverage.xml
genbadge coverage -i coverage.xml
env:
COVERAGE_FILE: "coverage.xml"

0 comments on commit 69a9fe9

Please sign in to comment.