Skip to content

Commit 2c67ce9

Browse files
committed
solve cicd pytest
1 parent e43eaa9 commit 2c67ce9

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

.github/workflows/dev.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,27 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28-
- name: Load cached venv
29-
id: dependencies-cache
30-
uses: actions/cache@v3
31-
with:
32-
path: .venv
33-
key: venv-${{ runner.os }}-${{ steps.python-setup.outputs.python-version }}
28+
# - name: Load cached venv
29+
# id: dependencies-cache
30+
# uses: actions/cache@v3
31+
# with:
32+
# path: .venv
33+
# key: venv-${{ runner.os }}-${{ steps.python-setup.outputs.python-version }}
3434

3535
- name: Create Venv if Cache not found
36-
if: steps.dependencies-cache.outputs.cache-hit != 'true'
36+
# if: steps.dependencies-cache.outputs.cache-hit != 'true'
3737
run: |
3838
python -m venv .venv
3939
4040
- name: Install dependencies
41-
if: steps.dependencies-cache.outputs.cache-hit != 'true'
41+
# if: steps.dependencies-cache.outputs.cache-hit != 'true'
4242
run: |
4343
pip install --upgrade pip
4444
pip install -r requirements.txt
4545
4646
- name: Run tests
4747
if: always()
4848
run: |
49-
pip install pytest
5049
source .venv/bin/activate
5150
pytest --junit-xml=./reports/pytest.xml --tb=auto -v
5251

.github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,27 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28-
- name: Load cached venv
29-
id: dependencies-cache
30-
uses: actions/cache@v3
31-
with:
32-
path: .venv
33-
key: venv-${{ runner.os }}-${{ steps.python-setup.outputs.python-version }}
28+
# - name: Load cached venv
29+
# id: dependencies-cache
30+
# uses: actions/cache@v3
31+
# with:
32+
# path: .venv
33+
# key: venv-${{ runner.os }}-${{ steps.python-setup.outputs.python-version }}
3434

3535
- name: Create Venv if Cache not found
36-
if: steps.dependencies-cache.outputs.cache-hit != 'true'
36+
# if: steps.dependencies-cache.outputs.cache-hit != 'true'
3737
run: |
3838
python -m venv .venv
3939
4040
- name: Install dependencies
41-
if: steps.dependencies-cache.outputs.cache-hit != 'true'
41+
# if: steps.dependencies-cache.outputs.cache-hit != 'true'
4242
run: |
4343
pip install --upgrade pip
4444
pip install -r requirements.txt
4545
4646
- name: Run tests
4747
if: always()
4848
run: |
49-
pip install pytest
5049
source .venv/bin/activate
5150
pytest --junit-xml=./reports/pytest.xml --tb=auto -v
5251

0 commit comments

Comments
 (0)