mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 20:18:32 +02:00
[GitHub Workflows] Manually activate virtual environment
This commit is contained in:
parent
d5d3d43fd3
commit
89fcdceadd
1 changed files with 20 additions and 4 deletions
24
.github/workflows/testing_external_plugins.yaml
vendored
24
.github/workflows/testing_external_plugins.yaml
vendored
|
@ -45,6 +45,24 @@ jobs:
|
|||
path: .venv
|
||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}-v2-namespace-plugins
|
||||
|
||||
- name: Set up and Activate Virtual Environment (Linux)
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
run: |
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
|
||||
- name: Set up and Activate Virtual Environment (Mac)
|
||||
if: startsWith(matrix.os, 'macOS')
|
||||
run: |
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
|
||||
- name: Set up and Activate Virtual Environment (Windows)
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
run: |
|
||||
python -m venv .venv
|
||||
venv/Scripts/activate
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install pip --upgrade
|
||||
|
@ -59,10 +77,8 @@ jobs:
|
|||
|
||||
- name: Test with pytest
|
||||
if: success() || failure()
|
||||
run: poetry run pytest --junitxml=reports/pytest/results.xml
|
||||
shell: poetry shell {0}
|
||||
run: poetry run pytest --junitxml=../reports/pytest/results.xml
|
||||
|
||||
- name: Test with behave
|
||||
if: success() || failure()
|
||||
run: poetry run behave --no-skipped --format progress2 --junit --junit-directory reports/behave
|
||||
shell: poetry shell {0}
|
||||
run: poetry run behave --no-skipped --format progress2 --junit --junit-directory ../reports/behave
|
||||
|
|
Loading…
Add table
Reference in a new issue