Skip to content

Commit

Permalink
Merge branch 'main' into test_pr_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
McHaillet authored Feb 22, 2024
2 parents 83a818c + 87db6c5 commit db79713
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ jobs:
runs-on: [self-hosted, linux, x64, gpu]
container:
image: ubuntu
permissions:
# Allow publishing new comments on PRs
pull-requests: write
# Allow for editing existing comments
contents: write
permissions:
# Read the action that triggered this one
actions: read
# Allow to write check runs
checks: write
# Allow for editing existing comments
contents: write
# Allow publishing new comments on PRs
pull-requests: write
# Read and update commit statuses
statuses: write


# Allow to check commit statusses
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
Expand All @@ -37,3 +44,9 @@ jobs:
path: coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_number: ${{ steps.get-pr.outputs.PR }}
minimum_coverage: 80
show_missing: True
fail_below_threshold: True
link_missing_lines: True
# False for now, might set to true later
only_changed_files: False
11 changes: 5 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ jobs:
run: |
conda install -y -c conda-forge python=3 cupy cuda-version=11.8
python -m pip install coverage
- name: Install code and list dependencies
- name: Install code and list dependencies
run: |
python -m pip install .[plotting]
python -m pip install -e .[plotting]
conda list
- name: Run tests and generate coverage
run: |
cd tests
coverage run -m unittest discover
coverage xml coverage.xml
coverage run -m unittest discover tests/
coverage xml
echo ${{ github.event.number }} > coverage.PR
- name: upload coverage report
uses: actions/upload-artifact@v4
with:
path: tests/coverage.*
path: coverage.*
name: coverage

0 comments on commit db79713

Please sign in to comment.