Skip to content

Commit

Permalink
Initial Windows CI setup w/o caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Feb 9, 2025
1 parent b94a7ea commit c0a1908
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,54 @@ jobs:
with:
path: ${{ env._PEX_TEST_DEV_ROOT }}/devpi
key: ${{ steps.restore-devpi-server.outputs.cache-primary-key }}
windows-tests:
name: tox -e ${{ matrix.tox-env }} ${{ matrix.pex-test-pos-args }}
needs: org-check
runs-on: windows-2022
strategy:
matrix:
include:
- python-version: [ 3, 13 ]
tox-env: format-check,lint-check,typecheck,package,docs
- python-version: [ 3, 13 ]
tox-env: py313-pip25_0
- python-version: [ 3, 13 ]
tox-env: py313-pip25_0-integration
pex-test-pos-args: --shard 1/2
- python-version: [ 3, 13 ]
tox-env: py313-pip25_0-integration
pex-test-pos-args: --shard 2/2
steps:
- name: Checkout Pex
uses: actions/checkout@v4
with:
# We need branches and tags for some ITs.
fetch-depth: 0
path: repo
- name: Setup Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v5
with:
python-version: "${{ join(matrix.python-version, '.') }}"
# Some ITs need this for VCS URLs of the form git+ssh://[email protected]/...
- name: Setup SSH Agent
uses: webfactory/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
if: env.SSH_PRIVATE_KEY != ''
with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
- name: Run Tests
continue-on-error: true
run:
python -mpip install tox
tox ${{ matrix.tox-env }} -- ${{ env._PEX_TEST_POS_ARGS }} ${{ matrix.pex-test-pos-args }}
final-status:
name: Gather Final Status
needs:
- checks
- linux-tests
- mac-tests
- windows-tests
runs-on: ubuntu-24.04
steps:
- name: Check Non-Success
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/test_shebang_length_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from pex.common import safe_open, touch
from pex.executables import chmod_plus_x
from pex.fs import safe_symlink
from pex.os import WINDOWS
from pex.typing import TYPE_CHECKING
from testing import IS_PYPY, make_project, run_pex_command
from testing.cli import run_pex3
Expand Down Expand Up @@ -51,7 +52,10 @@ def find_max_length(

# Pytest fails to cleanup tmp dirs used probing file_path_length_limit and this squashes a very
# large ream of warnings.
pytestmark = pytest.mark.filterwarnings("ignore:\\(rm_rf\\) error removing.*:pytest.PytestWarning")
if WINDOWS:
pytestmark = pytest.mark.skip("The current process of probing limits can break Windows.")
else:
pytestmark = pytest.mark.filterwarnings("ignore:\\(rm_rf\\) error removing.*:pytest.PytestWarning")


@pytest.fixture(scope="session")
Expand Down

0 comments on commit c0a1908

Please sign in to comment.