-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added pip install --requirement since it is was removed from bin/bootstrap.sh * need to build image on latest Dockerfile before running tests * need to build image on latest Dockerfile before running tests * need github sha like this * trying to reorder to see if I can access git * just going to cut the sha manually using cut * loading version from file before install * version file will not be there if run as Github Action * Updating actions versions
- Loading branch information
Showing
4 changed files
with
42 additions
and
15 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
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 |
---|---|---|
@@ -1,18 +1,40 @@ | ||
name: Run deenurp tests on deenurp image | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
on: push | ||
|
||
jobs: | ||
build: | ||
dev_image: | ||
environment: docker_build | ||
runs-on: ubuntu-latest | ||
outputs: | ||
sha_short: ${{ env.sha_short }} | ||
steps: | ||
- | ||
name: Set env | ||
run: echo "sha_short=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
tags: ghcr.io/fhcrc/deenurp:${{ env.sha_short }} | ||
test: | ||
needs: [dev_image] | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/fhcrc/deenurp:latest | ||
image: ghcr.io/fhcrc/deenurp:${{ needs.dev_image.outputs.sha_short }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
python3 -m deenurp.test | ||
tests/run.sh |
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