Skip to content

Commit

Permalink
For pushes only do pushes to main and try to fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Oct 5, 2024
1 parent cebbb0f commit 8cd3274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI

on:
push:
branches: ["main"]
branches-ignore:
- "dependabot/**"
pull_request:
Expand Down
4 changes: 1 addition & 3 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ else

echo "::group::Setup for tests"

CWD=$(pwd)

# We run the tests from inside an empty directory, to make sure Python
# doesn't pick up any .py files from our working dir. Might have been
# pre-created by some of the code above.
Expand All @@ -70,7 +68,7 @@ else

echo "::endgroup::"
echo "::group:: Run Tests"
if COVERAGE_PROCESS_START=$(pwd)/../pyproject.toml coverage run --rcfile=../pyproject.toml -m pytest -ra --junitxml=../test-results.xml "${CWD}/tests" --verbose --durations=10 $flags; then
if COVERAGE_PROCESS_START=$(pwd)/../pyproject.toml coverage run --rcfile=../pyproject.toml -m pytest -ra --junitxml=../test-results.xml "$(pwd)/../tests" --verbose --durations=10 $flags; then
PASSED=true
else
PASSED=false
Expand Down

0 comments on commit 8cd3274

Please sign in to comment.