Skip to content

Commit 85ae969

Browse files
Don't overwrite benchmark.db in Action matrix (#1332)
1 parent 3e9f6f6 commit 85ae969

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/tests.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,37 @@ jobs:
3434
python-version: ["3.9"]
3535
pytest_args: [tests]
3636
extra-env: [""]
37+
name-prefix: [tests]
3738
include:
3839
# Run stability tests on the lowest and highest versions of Python only
3940
# These are temporarily redundant with the current global python-version
4041
# - pytest_args: tests/stability
4142
# python-version: "3.9"
4243
# os: ubuntu-latest
43-
# - pytest_args: tests/stability
44-
# python-version: "3.9"
45-
# os: ubuntu-latest
46-
- pytest_args: tests/stability
47-
python-version: "3.11"
48-
os: ubuntu-latest
44+
# name-prefix: stability
4945
- pytest_args: tests/stability
5046
python-version: "3.11"
5147
os: ubuntu-latest
48+
name-prefix: stability
5249
# Run stability tests on Python Windows and MacOS (latest py39 only)
5350
- pytest_args: tests/stability
5451
python-version: "3.9"
5552
os: windows-latest
53+
name-prefix: stability
5654
- pytest_args: tests/stability
5755
python-version: "3.9"
5856
os: macos-latest
57+
name-prefix: stability
5958
- pytest_args: tests/workflows/test_snowflake.py
6059
python-version: "3.9"
6160
os: ubuntu-latest
61+
name-prefix: snowflake
6262
extra-env: ci/environment-snowflake.yml
6363
- pytest_args: tests/tpch -m tpch_nondask
6464
python-version: "3.9"
6565
os: ubuntu-latest
6666
extra-env: ci/environment-tpch-nondask.yml
67+
name-prefix: tpch-nondask
6768

6869
steps:
6970
- name: Checkout
@@ -136,7 +137,7 @@ jobs:
136137
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
137138
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
138139
COILED_RUNTIME_VERSION: ${{ matrix.runtime-version }}
139-
DB_NAME: ${{ matrix.os }}-py${{ matrix.python-version }}.db
140+
DB_NAME: ${{ matrix.name-prefix }}-${{ matrix.os }}-py${{ matrix.python-version }}.db
140141
CLUSTER_DUMP: always
141142
run: |
142143
pytest --benchmark -n 4 --dist loadscope ${{ env.PYTEST_MARKERS }} ${{ matrix.pytest_args }}
@@ -148,9 +149,9 @@ jobs:
148149
uses: actions/upload-artifact@v3
149150
if: always()
150151
with:
151-
name: ${{ matrix.os }}-py${{ matrix.python-version }}
152+
name: ${{ matrix.name-prefix }}-${{ matrix.os }}-py${{ matrix.python-version }}
152153
path: |
153-
${{ matrix.os }}-py${{ matrix.python-version }}.db
154+
${{ matrix.name-prefix }}-${{ matrix.os }}-py${{ matrix.python-version }}.db
154155
cluster_kwargs.*.*
155156
mamba_env_export.yml
156157

0 commit comments

Comments
 (0)