Skip to content

Commit

Permalink
Use default working-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 3, 2024
1 parent 9ffe03a commit 9388c57
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-deps-ci-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.generate-matrix.outputs.matrix-include)['linux'] }}
defaults:
working-directory: "C:\Windows\Temp\testing"
steps:
- uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -281,18 +283,16 @@ jobs:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.generate-matrix.outputs.matrix-include)['windows'] }}
defaults:
run:
working-directory: "C:\Windows\Temp\testing"
steps:

- name: "Throttle Builds"
shell: bash
run: |
t=$(shuf -i 1-30 -n 1); echo "Sleeping $t seconds"; sleep "$t"
- name: "Testing directory"
run: |
mkdir C:\Windows\Temp\testing
cd C:\Windows\Temp\testing
- name: Checkout Source Code
uses: actions/checkout@v4

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-action-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ jobs:
- name: "Testing directory"
run: |
mkdir C:\Windows\Temp\testing
cd C:\Windows\Temp\testing
mkdir "C:\Windows\Temp\testing"
cd "C:\Windows\Temp\testing"
- name: "Set `TIMESTAMP` environment variable"
shell: bash
Expand Down Expand Up @@ -356,7 +356,8 @@ jobs:
- generate-matrix
env:
PIP_INDEX_URL: https://pypi.org/simple

defaults:
working-directory: "C:\Windows\Temp\testing"
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test-packages-action-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,15 @@ jobs:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.generate-matrix.outputs.pkg-matrix-include) }}

defaults:
working-directory: "C:\Windows\Temp\testing"
steps:

- name: "Throttle Builds"
shell: bash
run: |
t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(1, 15)))'); echo "Sleeping $t seconds"; sleep "$t"
- name: "Testing directory"
run: |
mkdir C:\Windows\Temp\testing
cd C:\Windows\Temp\testing
- name: "Set `TIMESTAMP` environment variable"
shell: bash
Expand Down

0 comments on commit 9388c57

Please sign in to comment.