Skip to content

Commit c84992a

Browse files
committed
fix pytest installation
1 parent 5a40e36 commit c84992a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/cross_platform_tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false # Continue with other jobs if one fails
2727
matrix:
28-
python-version: ['3.10', '3.11']
28+
python-version: ['3.10']
2929

3030
steps:
3131
- uses: actions/checkout@v4
@@ -37,6 +37,12 @@ jobs:
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939

40+
- name: Create virtual environment
41+
run: |
42+
python -m venv .venv
43+
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
44+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
45+
4046
- name: Install dependencies for testing
4147
run: |
4248
python -m pip install --upgrade pip
@@ -47,12 +53,6 @@ jobs:
4753
run: pip install c2pa-python
4854
continue-on-error: true # Continue even if c2pa-python install fails
4955

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-
5656
- name: Build and install package with maturin
5757
uses: PyO3/maturin-action@v1
5858
with:

0 commit comments

Comments
 (0)