diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 1138d5df..961a9674 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -25,8 +25,10 @@ on: pull_request: workflow_dispatch: -jobs: +env: + DOCKER_BUILDKIT: 1 +jobs: Test: runs-on: ubuntu-latest @@ -48,36 +50,33 @@ jobs: name: ${{ matrix.type }} | ${{ matrix.test }} env: - PDK_ROOT: $GITHUB_WORKSPACE/rules/klayout - PDK: ${{ matrix.pdk }} + IMAGE: ghcr.io/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/test steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - with: - python-version: '3.9' - cache: 'pip' - cache-dependency-path: '**/requirements.test.txt' + - name: Build container image + run: | + docker build -t "$IMAGE" -f- rules/klayout < + docker run --rm + -v $(pwd):/wrk -w /wrk/rules/klayout/${{ matrix.pdk }}/testing + -e PDK_ROOT="/wrk/rules/klayout" + -e PDK='${{ matrix.pdk }}' + "$IMAGE" make test-${{ matrix.type }}-${{ matrix.test }}