Skip to content

Commit

Permalink
Rework actions (#540)
Browse files Browse the repository at this point in the history
* run correct actions on correct repos

* remove old docker job, separating it to several

* reusable build yml from upstream

* upstream docker.yml version

* first test run

* steppify docker.yml action to be able to add more steps

* added python version to reusable build

* fix incorrect usage of steps in gh action

* corect the type in reusable wf

* correct condition in python version script

* corrected the branch

* corrected image dockerhub owner

* no linux/arm64

* comment out unused tasks; minor corrections

* do not redepoy becuse jm said so

* do not use codecov

* disable deploy differently
  • Loading branch information
MajoBerger authored Feb 23, 2024
1 parent 29bf0c7 commit 39550ae
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 544 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,31 +92,31 @@ jobs:
path: 'dspace/target/site/jacoco-aggregate/jacoco.xml'
retention-days: 14

# Codecov upload is a separate job in order to allow us to restart this separate from the entire build/test
# job above. This is necessary because Codecov uploads seem to randomly fail at times.
# See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
codecov:
# Must run after 'tests' job above
needs: tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# # Codecov upload is a separate job in order to allow us to restart this separate from the entire build/test
# # job above. This is necessary because Codecov uploads seem to randomly fail at times.
# # See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
# codecov:
# # Must run after 'tests' job above
# needs: tests
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# Download artifacts from previous 'tests' job
- name: Download coverage artifacts
uses: actions/download-artifact@v3
# # Download artifacts from previous 'tests' job
# - name: Download coverage artifacts
# uses: actions/download-artifact@v3

# Now attempt upload to Codecov using its action.
# NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
#
# Retry action: https://github.com/marketplace/actions/retry-action
# Codecov action: https://github.com/codecov/codecov-action
- name: Upload coverage to Codecov.io
uses: Wandalen/[email protected]
with:
action: codecov/codecov-action@v3
# Try upload 5 times max
attempt_limit: 5
# Run again in 30 seconds
attempt_delay: 30000
# # Now attempt upload to Codecov using its action.
# # NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
# #
# # Retry action: https://github.com/marketplace/actions/retry-action
# # Codecov action: https://github.com/codecov/codecov-action
# - name: Upload coverage to Codecov.io
# uses: Wandalen/[email protected]
# with:
# action: codecov/codecov-action@v3
# # Try upload 5 times max
# attempt_limit: 5
# # Run again in 30 seconds
# attempt_delay: 30000
Loading

0 comments on commit 39550ae

Please sign in to comment.