Skip to content

Commit

Permalink
adjust the action needs
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Jan 23, 2024
1 parent fa038a1 commit 164b96c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ jobs:
python -m pip install --upgrade pip
python -m pip install build
- name: Check Git status / workspace cleanness
run: |
if [[ -z "$(git status --porcelain)" ]]; then
echo "No changes found."
else
echo "Changes detected. Please commit or discard changes before publishing."
git status --porcelain
exit 1
fi
- name: Build the package
run: python -m build --outdir .

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
## (public endpoints)
##
Test-Spot-Public:
needs: [Build]
needs: [Pre-Commit]
uses: ./.github/workflows/_test_spot_public.yaml
strategy:
fail-fast: false
Expand All @@ -113,7 +113,7 @@ jobs:
##
## (private endpoints)
Test-Spot-Private:
needs: [Build]
needs: [Pre-Commit]
uses: ./.github/workflows/_test_spot_private.yaml
strategy:
max-parallel: 1 # to avoid failing tests because of API Rate limits
Expand All @@ -131,7 +131,7 @@ jobs:
##
## (public endpoints)
Test-Futures-Public:
needs: [Build]
needs: [Pre-Commit]
uses: ./.github/workflows/_test_futures_public.yaml
strategy:
fail-fast: false
Expand All @@ -144,7 +144,7 @@ jobs:
##
## (private endpoints)
Test-Futures-Private:
needs: [Build]
needs: [Pre-Commit]
uses: ./.github/workflows/_test_futures_private.yaml
strategy:
max-parallel: 1 # to avoid failing tests because of API Rate limits
Expand All @@ -165,11 +165,7 @@ jobs:
success() &&
github.actor == 'btschwertfeger' &&
github.event_name == 'push'
needs:
- Test-Spot-Public
- Test-Spot-Private
- Test-Futures-Public
- Test-Futures-Private
needs: [Pre-Commit]
uses: ./.github/workflows/_codecov.yaml
with:
os: "ubuntu-latest"
Expand Down

0 comments on commit 164b96c

Please sign in to comment.