Skip to content

Commit c5efc50

Browse files
committed
add virtual env
1 parent 6a5eecb commit c5efc50

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/cross_platform_tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,19 @@ jobs:
4747
run: pip install c2pa-python
4848
continue-on-error: true # Continue even if c2pa-python install fails
4949

50-
- name: Build package with maturin (development mode)
50+
- name: Create virtual environment
51+
run: |
52+
python -m venv .venv
53+
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
54+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
55+
56+
- name: Build and install package with maturin
5157
uses: PyO3/maturin-action@v1
5258
with:
5359
target: x86_64
5460
command: develop
5561
args: --release
5662
sccache: 'true'
57-
python-version: ${{ matrix.python-version }}
58-
working-directory: .
5963

6064
- name: Run tests
6165
run: python run_tests.py
@@ -68,8 +72,6 @@ jobs:
6872
command: build
6973
args: --release
7074
sccache: 'true'
71-
python-version: ${{ matrix.python-version }}
72-
working-directory: .
7375

7476
- name: Upload wheels
7577
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)