forked from pex-tool/pex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Windows CI setup w/o caching.
More work towards pex-tool#2658.
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,7 @@ jobs: | |
with: | ||
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }} | ||
- name: Run Tests | ||
continue-on-error: true | ||
uses: pex-tool/actions/run-tox@c53dadd8b410bbd66480de91067e9e45d2b3af38 | ||
with: | ||
path: repo/tox.ini | ||
|
@@ -216,12 +217,56 @@ jobs: | |
with: | ||
path: ${{ env._PEX_TEST_DEV_ROOT }}/devpi | ||
key: ${{ steps.restore-devpi-server.outputs.cache-primary-key }} | ||
windows-tests: | ||
name: "Windows: 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 | ||
pex-test-pos-args: --color -vvs | ||
- python-version: [ 3, 13 ] | ||
tox-env: py313-pip25_0-integration | ||
pex-test-pos-args: --color -vvs --shard 1/2 | ||
- python-version: [ 3, 13 ] | ||
tox-env: py313-pip25_0-integration | ||
pex-test-pos-args: --color -vvs --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 | ||
uses: pex-tool/actions/run-tox@c53dadd8b410bbd66480de91067e9e45d2b3af38 | ||
with: | ||
path: repo/tox.ini | ||
tox-env: >- | ||
${{ matrix.tox-env }} -- ${{ 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters