need to build image on latest Dockerfile before running tests #30
Workflow file for this run
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
name: Run deenurp tests on deenurp image | ||
on: push | ||
jobs: | ||
push_to_registry: | ||
environment: docker_build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Set env | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: | | ||
ghcr.io/fhcrc/deenurp:${{ env.sha_short }} | ||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/fhcrc/deenurp:${{ env.sha_short }} | ||
Check failure on line 33 in .github/workflows/tests.yml GitHub Actions / Run deenurp tests on deenurp imageInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
python3 -m deenurp.test | ||
tests/run.sh |