Skip to content

Commit afca273

Browse files
committed
remove window
1 parent e2a0e92 commit afca273

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/cross_platform_tests.yml

Lines changed: 6 additions & 26 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-
os: [ubuntu-latest, macos-latest, windows-latest]
28+
os: [ubuntu-latest, macos-latest]
2929
python-version: ['3.11']
3030

3131
steps:
@@ -64,53 +64,33 @@ jobs:
6464
run: |
6565
python -m venv .venv
6666
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
67+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
6768
68-
- name: Set PATH for Unix
69-
if: matrix.os != 'windows-latest'
70-
run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
71-
72-
- name: Set PATH for Windows
73-
if: matrix.os == 'windows-latest'
74-
run: echo "$PWD/.venv/Scripts" >> $GITHUB_PATH
75-
shell: bash
76-
77-
# Attempt to install OpenSSL using Chocolatey for Windows if needed by the crate itself
78-
- name: Install OpenSSL (Windows only)
79-
if: matrix.os == 'windows-latest'
80-
run: choco install openssl -y --no-progress || echo "OpenSSL installation failed, continuing..."
81-
shell: bash
82-
8369
- name: Install dependencies
8470
run: |
8571
python -m pip install --upgrade pip
8672
pip install pytest pytest-benchmark
87-
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt || echo "Failed to install some dependencies from tests/requirements.txt, continuing..."; fi
73+
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
8874
shell: bash
8975

9076
- name: Build and install package with maturin
9177
uses: PyO3/maturin-action@v1
9278
with:
9379
python-interpreter: ${{ steps.setup_python.outputs.python-path }}
94-
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || (matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64') }}
80+
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || 'x86_64' }}
9581
command: develop
9682
args: --release
9783
sccache: 'true'
9884

9985
- name: Run tests
100-
run: |
101-
# Skip c2pa-python comparison tests on Windows if necessary
102-
if [ "${{ matrix.os }}" == "windows-latest" ]; then
103-
# Only run tests that don't require c2pa-python if installation failed
104-
pip list | grep -q c2pa-python || export SKIP_COMPARISON_TESTS=1
105-
fi
106-
python run_tests.py
86+
run: python run_tests.py
10787
continue-on-error: true # Continue even if tests fail to get wheels
10888

10989
- name: Build wheel
11090
uses: PyO3/maturin-action@v1
11191
with:
11292
python-interpreter: ${{ steps.setup_python.outputs.python-path }}
113-
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || (matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64') }}
93+
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || 'x86_64' }}
11494
command: build
11595
args: --release
11696
sccache: 'true'

0 commit comments

Comments
 (0)