mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 20:18:32 +02:00
[GitHub Actions] create virutal env directly
This commit is contained in:
parent
f4c9d68f50
commit
d590dee99a
1 changed files with 5 additions and 7 deletions
12
.github/workflows/testing_external_plugins.yaml
vendored
12
.github/workflows/testing_external_plugins.yaml
vendored
|
@ -45,13 +45,9 @@ jobs:
|
|||
path: .venv
|
||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}-v2-namespace-plugins
|
||||
|
||||
- name: Install dependencies (1 of 2)
|
||||
- name: Create Virtual Environment
|
||||
run: |
|
||||
python -m pip install pip --upgrade
|
||||
pip install poetry
|
||||
poetry config --local virtualenvs.in-project true
|
||||
poetry install --remove-untracked
|
||||
poetry install
|
||||
python -m venv .venv
|
||||
|
||||
- name: Activate Virtual Environment (Linux)
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
|
@ -65,9 +61,11 @@ jobs:
|
|||
if: startsWith(matrix.os, 'windows')
|
||||
run: venv/Scripts/activate
|
||||
|
||||
- name: Install dependencies (2 of 2)
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install .
|
||||
python -m pip install ./tests/external_plugins_src/
|
||||
python -m pip install pytest behave
|
||||
cd features
|
||||
# installed test plugins aren't recognized by "behave" if run from the
|
||||
# project's root folder
|
||||
|
|
Loading…
Add table
Reference in a new issue