Skip to content

Commit

Permalink
Fix ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Oct 11, 2023
1 parent 7a343d9 commit 03d0696
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ jobs:
- name: Commit logs and push to repo
if: ${{ matrix.version }} == '1.9'
run: |
git config --local user.name lbonaldo
git config --local user.email "[email protected]"
git checkout ${GITHUB_REF#refs/heads/}
git checkout -b test-logs
git add -f test/Logs
git commit -m "Test logs updated"
git push origin ${GITHUB_REF#refs/heads/}-testlogs
echo ${{ matrix.version }}
if [[ ${{ matrix.version }} == '1' ]]; then
git config --local user.name lbonaldo
git config --local user.email "[email protected]"
git checkout ${GITHUB_REF#refs/heads/}
git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
git add -f test/Logs
git commit -m "Test logs updated"
git push origin ${GITHUB_REF#refs/heads/}-testlogs
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-processcoverage@v1
Expand Down
2 changes: 1 addition & 1 deletion test/test_methodofmorris.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ try
catch BoundsError
end

if VERSION VersionNumber(1, 7)
@static if VERSION VersionNumber(1, 7)
test_result = Test.@test built broken = true
else
test_result = built ? "Test Passed" : "Test Failed"
Expand Down

0 comments on commit 03d0696

Please sign in to comment.