Skip to content

Commit

Permalink
Update jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebusm committed Dec 17, 2024
1 parent 1d91b92 commit 638b765
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/run_proxy_test/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Run proxy test'
runs-on: ubuntu
runs-on: ubuntu-latest
inputs:
wheel: {required: true, type: string, description: The name of the wheel artifact to test }
python3: {default: '7', type: string, description: Specifies the version of python for testing }
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/build_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ jobs:
with:
name: wheel-${{env.CIBW_BUILD}}
path: wheelhouse/*.whl

- name: Run proxy test
if: matrix.os == 'linux' && inputs.job_type == 'build-python-wheels'
uses: ./.github/actions/run_proxy_test
with:
python3: ${{inputs.python3}}
wheel: wheel-${{env.CIBW_BUILD}}

- name: Discover test directory names
if: inputs.job_type == 'build-python-wheels'
Expand Down Expand Up @@ -265,6 +258,32 @@ jobs:
test_dirs: ${{env.test_dirs}}
cibw_build: ${{env.CIBW_BUILD}}

proxy_test:
uses: ./.github/actions/run_proxy_test
needs: [compile]
strategy:
matrix:
# Declaring the dummy fields here to aid the Github Actions linting in VSCode and to provide documentation
os: [0] # Decouples the steps from any distro version changes
cmake_preset_prefix: [0]
cibw_build_suffix: [0]
envs: [0]
build_dir: [0] # Must be an absolute path
vcpkg_installed_dir: [0]
vcpkg_packages_dir: [0]
symbols: [0] # Glob for symbol symbol files. Used for including in build-python-wheels builds and exclusion on others.
do_not_archive: [0]
test_services: [0] # Github service containers to spin up for the pytest run
container: [0]
exclude:
- os: 0
include:
- ${{fromJSON(inputs.matrix)[0]}} # The items after 0 are for tests only
if: github.event.inputs.os == 'linux' && inputs.job_type == 'build-python-wheels'
with:
python3: ${{inputs.python3}}
wheel: wheel-${{needs.compile.outputs.cibw_build}}

stop-ec2-runner:
needs: [start_ec2_runner, compile]
if: |
Expand Down

0 comments on commit 638b765

Please sign in to comment.