-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More GH Workflow changes; swapping to msvc to see if OMP works; speci…
…alizing test suite to isolate the seg fault
- Loading branch information
Showing
16 changed files
with
1,014 additions
and
745 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,27 +44,4 @@ jobs: | |
- name: Test with pytest | ||
run: | | ||
python -m pytest tests/ --cov=primate --benchmark-skip | ||
coverage run --source=./primate -m pytest tests/ --benchmark-skip | ||
coverage json -o tests/test_results.json | ||
coverage report -m | ||
- if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
COV_RESULT=$(cat tests/test_results.json) | ||
COV_PERCENT=$(echo $COV_RESULT | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["totals"]["percent_covered_display"])') | ||
echo "COV_PERCENT=$COV_PERCENT" >> $GITHUB_ENV | ||
- if: matrix.os == 'ubuntu-latest' | ||
name: Create coverage badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_SECRET }} | ||
gistID: ef42349965f40edf4232737026690c5f | ||
filename: coverage_info.json | ||
label: coverage | ||
message: ${{ env.COV_PERCENT }}% | ||
valColorRange: ${{ env.COV_PERCENT }} | ||
maxColorRange: 100 | ||
minColorRange: 0 | ||
namedLogo: Pytest | ||
- name: Send coverage report | ||
run: | | ||
coveralls --service=github | ||
coverage report -m |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,13 @@ jobs: | |
# with: | ||
# version: latest | ||
# platform: x64 | ||
- name: Install Clang with OpenMP support using Chocolatey | ||
run: | | ||
choco install -y llvm --params "clang;compiler=clang" --version 13.0.0 | ||
$env:PATH = "C:\Program Files\LLVM\bin;$env:PATH" | ||
clang --version | ||
- name: Setup MSVC | ||
uses: ilammy/[email protected] | ||
# - name: Install Clang with OpenMP support using Chocolatey | ||
# run: | | ||
# choco install -y llvm --params "clang;compiler=clang" --version 13.0.0 | ||
# $env:PATH = "C:\Program Files\LLVM\bin;$env:PATH" | ||
# clang --version | ||
# - name: Install OpenBLAS using Chocolatey | ||
# run: | | ||
# choco install -y openblas | ||
|
@@ -51,9 +53,10 @@ jobs: | |
- name: Install package | ||
run: | | ||
pip install --verbose . | ||
env: | ||
CC: msvc | ||
CXX: msvc | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest tests/ --cov=primate --benchmark-skip | ||
coverage run --source=./primate -m pytest tests/ --benchmark-skip | ||
coverage json -o tests/test_results.json | ||
coverage report -m |
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.