Skip to content
Snippets Groups Projects
Unverified Commit 15673ceb authored by auphelia's avatar auphelia Committed by GitHub
Browse files

Merge pull request #642 from Xilinx/feature/workflow_fix

[actions] Update quicktest workflow to new docker setup
parents 25dee47b 1bf72b16
No related branches found
No related tags found
No related merge requests found
......@@ -17,37 +17,9 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push
uses: docker/build-push-action@v2
with:
file: docker/Dockerfile.finn
context: .
push: false
load: true
tags: finn_gha
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
-
# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: DockerRunQuicktest
run: |
docker run --init --hostname finn_gha -w $(pwd) -v $(pwd):$(pwd) -e FINN_BUILD_DIR=/tmp/finn_gha -e FINN_INST_NAME=finn_gha finn_gha quicktest.sh
export FINN_ROOT=$(pwd)
export FINN_BUILD_DIR=/tmp/finn_gha
export FINN_INST_NAME=finn_gha
./run-docker.sh quicktest
......@@ -2,7 +2,7 @@
: ${PYTEST_PARALLEL=auto}
cd $FINN_ROOT/finn
cd $FINN_ROOT
# check if command line argument is empty or not present
if [ -z $1 ]; then
echo "Running quicktest: not (vivado or slow or board) with pytest-xdist"
......
......@@ -133,6 +133,7 @@ def create_two_fc_model():
return model
@pytest.mark.vivado
@pytest.mark.fpgadataflow
def test_fpgadataflow_checksum():
# use a graph consisting of two fc layers to test
......
......@@ -94,6 +94,9 @@ def analysis_testing_for_no_quant_nodes(model):
@pytest.mark.parametrize("wbits", [1, 2])
@pytest.mark.parametrize("model_name", ["TFC", "SFC", "LFC", "CNV", "mobilenet"])
def test_QONNX_to_FINN(model_name, wbits, abits):
if model_name == "mobilenet":
pytest.xfail("MobileNet test is temporarily excluded from QONNX testing.")
if wbits > abits:
pytest.skip("No wbits > abits cases at the moment")
if model_name == "LFC" and wbits == 2 and abits == 2:
......
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