Skip to content

Commit 0bd0084

Browse files
create and run venv in the beginning of the pipeline
1 parent a5bc88d commit 0bd0084

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/packing.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,15 @@ jobs:
491491
- name: Remove connector source code
492492
run: python3 .github/scripts/remove_source_code.py
493493

494+
- name: Create venv
495+
run: |
496+
apt install -y python3-venv
497+
python3 -m venv .venv
498+
499+
494500
- name: Install tarantool ${{ matrix.tarantool }}
495501
run: |
502+
. .venv/bin/activate
496503
apt install -y curl
497504
curl -L https://tarantool.io/release/2/installer.sh | bash
498505
apt install -y tarantool tarantool-dev
@@ -506,15 +513,12 @@ jobs:
506513
path: deb_dist
507514

508515
- name: Install the package from deb artifacts
509-
run: apt install -y `pwd`/deb_dist/python3-tarantool_*.deb
516+
run: |
517+
. .venv/bin/activate
518+
apt install -y `pwd`/deb_dist/python3-tarantool_*.deb
510519
env:
511520
DEBIAN_FRONTEND: noninteractive
512521

513-
- name: Create venv
514-
run: |
515-
apt install -y python3-venv
516-
python3 -m venv .venv
517-
518522
- name: Install test requirements
519523
run: |
520524
. .venv/bin/activate
@@ -524,14 +528,13 @@ jobs:
524528
run: |
525529
. .venv/bin/activate
526530
curl -L https://tarantool.io/release/2/installer.sh | bash
531+
apt install -y cmake=3.15.3
527532
apt install -y tt
528-
pip3 install cmake==3.15.3
529533
tt rocks install crud
530534
531535
- name: Run tests
532536
run: |
533537
. .venv/bin/activate
534-
pip3 install pyyaml
535538
make test-pure-install
536539
537540
publish_deb:

0 commit comments

Comments
 (0)