Skip to content

Commit 12c99e8

Browse files
committed
Separate app dependency install for Python 3.7 and the rest
1 parent 758ce01 commit 12c99e8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ jobs:
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
26-
- name: Run docker compose
26+
- name: Launch Splunk Docker instance
2727
run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
28-
- name: Setup Python
28+
- name: Setup Python ${{ matrix.python-version }}
2929
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
3030
with:
3131
python-version: ${{ matrix.python-version }}
32-
- name: Install dependencies
33-
# Will become `python -m pip install . --group test` when we drop Python 3.7
32+
- name: (Python 3.7) Install dependencies
33+
if: ${{ matrix.python-version == '3.7' }}
3434
run: python -m pip install python-dotenv deprecation pytest
35-
- name: Test Execution
35+
- name: (Python >= 3.9) Install dependencies
36+
if: ${{ matrix.python-version != '3.7' }}
37+
run: python -m pip install . --group test
38+
- name: Run entire test suite
3639
run: python -m pytest ./tests

0 commit comments

Comments
 (0)