Skip to content
Snippets Groups Projects
Unverified Commit ca21e06b authored by Yaman Umuroglu's avatar Yaman Umuroglu Committed by GitHub
Browse files

Merge pull request #126 from Xilinx/feature/github-actions

Run quicktest with GitHub Actions on PR
parents 179719e1 cf1b1358
No related branches found
No related tags found
No related merge requests found
name: QuicktestPRAgainstDev
on:
pull_request:
branches: [ dev ]
jobs:
test:
name: Run quicktest on PR branch
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: DockerRunQuicktest
run: sh run-docker.sh quicktest
......@@ -96,6 +96,8 @@ gecho "Port-forwarding for Netron $NETRON_PORT:$NETRON_PORT"
gecho "Vivado IP cache dir is at $VIVADO_IP_CACHE"
gecho "Using default PYNQ board $PYNQ_BOARD"
DOCKER_INTERACTIVE = ""
if [ "$1" = "test" ]; then
gecho "Running test suite (all tests)"
DOCKER_CMD="python setup.py test"
......@@ -108,6 +110,7 @@ elif [ "$1" = "notebook" ]; then
else
gecho "Running container only"
DOCKER_CMD="bash"
DOCKER_INTERACTIVE="-it"
fi
# Build the FINN Docker image
......@@ -123,7 +126,7 @@ docker build -f docker/Dockerfile.finn_dev --tag=$DOCKER_TAG \
# Launch container with current directory mounted
# important to pass the --init flag here for correct Vivado operation, see:
# https://stackoverflow.com/questions/55733058/vivado-synthesis-hangs-in-docker-container-spawned-by-jenkins
docker run -t --rm --name $DOCKER_INST_NAME -it --init \
docker run -t --rm --name $DOCKER_INST_NAME $DOCKER_INTERACTIVE --init \
--hostname $DOCKER_INST_NAME \
-e "XILINX_VIVADO=$VIVADO_PATH" \
-e "SHELL=/bin/bash" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment