From 512e6fbfc3faca5ae30a641a5ec90e3ec41f9eb8 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Sun, 23 Jun 2024 09:00:58 +0000 Subject: [PATCH] Set -w /workspace docker run option --- .github/workflows/package.yml | 3 +-- .github/workflows/test.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 83f60de..9ce93f2 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -44,9 +44,8 @@ jobs: uses: "addnab/docker-run-action@v3" with: image: "python:${{ matrix.python-version }}-alpine" - options: --rm -v ${{ github.workspace }}:/workspace + options: --rm -v ${{ github.workspace }}:/workspace -w /workspace run: | set -o errexit apk add --no-cache bash make - cd /workspace make build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ed950d..69a63c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,10 +44,9 @@ jobs: uses: "addnab/docker-run-action@v3" with: image: "python:${{ matrix.python-version }}-alpine" - options: --rm -v ${{ github.workspace }}:/workspace + options: --rm -v ${{ github.workspace }}:/workspace -w /workspace run: | set -o errexit apk add --no-cache bash less make - cd /workspace python3 -m pip install -r requirements-dev.txt make test