Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: split windows x86 job #2943

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/pnl-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,21 @@ jobs:
extra-args: '--forked -m "not llvm"'

# add 32-bit build on windows
# split by marks to reduce peak memory
- python-version: '3.8'
python-architecture: 'x86'
os: windows
extra-args: '-m llvm'

- python-version: '3.8'
python-architecture: 'x86'
os: windows
extra-args: '-m "not llvm and composition"'

- python-version: '3.8'
python-architecture: 'x86'
os: windows
extra-args: '-m "not llvm and not composition"'

# fp32 run on linux python 3.10
- python-version: '3.10'
Expand Down Expand Up @@ -181,10 +193,16 @@ jobs:
timeout-minutes: 180
run: pytest --junit-xml=tests_out.xml --verbosity=0 -n logical ${{ matrix.extra-args }}

# double quotes are disallowed in artifact names
- name: Get valid filename string from extra-args
id: extra_args_fname
run: echo extra_args="$(echo ${{ matrix.extra-args }} | tr -d '\"')" >> $GITHUB_OUTPUT
shell: bash

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }}-${{ matrix.version-restrict }}
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }}-${{ matrix.version-restrict }}-${{ steps.extra_args_fname.outputs.extra_args }}
path: tests_out.xml
retention-days: 5
if: (success() || failure()) && ! contains(matrix.extra-args, 'forked')
Expand Down Expand Up @@ -214,3 +232,4 @@ jobs:
name: dist-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }}
path: dist/
retention-days: 2
overwrite: true
Loading