UFS-dev PR#258 #359
Workflow file for this run
This file contains hidden or 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: build test and push docker | |
on: | |
# not listing pull_request closed, since it would run when merged | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
env: | |
TEST_TAG: dtcenter/ccpp-scm:test | |
PR_NUMBER: ${{ github.event.number }} | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and export test tag | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
load: true | |
tags: ${{ env.TEST_TAG }} | |
build-args: PR_NUMBER=${{ github.event.number }} | |
- name: Test | |
run: | | |
mkdir $HOME/output | |
chmod a+rw $HOME/output | |
docker run --rm -v $HOME/output:/home ${{ env.TEST_TAG }} ./run_scm.py -f ../../test/rt_test_cases.py --runtime_mult 0.1 --mpi_command "mpirun -np 1 --allow-run-as-root" -d |