Skip to content

Commit

Permalink
merging different wheel dirs and disabling libsumo tests on windows i…
Browse files Browse the repository at this point in the history
…n CI #3
  • Loading branch information
behrisch committed Jan 26, 2024
1 parent 1ddaf4c commit 18e8725
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/wheel-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
pull_request: # run on pull requests
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
workflow_dispatch:
schedule:
- cron: '25 2 * * *'

Expand Down Expand Up @@ -157,14 +158,17 @@ jobs:
# publishing wheels
###################
publish-wheels:
if: github.repository == 'eclipse-sumo/sumo' && (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags'))
if: github.repository == 'eclipse-sumo/sumo' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags'))
needs: [test-wheels]
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
path: python-wheels
merge-multiple: true

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,12 @@ jobs:
tests\runCiTests.bat $env:pythonLocation\Scripts\texttestc.py
# python -m pip uninstall -y eclipse-sumo

- name: Running libsumo tests
if: matrix.python_version == '3.12'
- name: Running libsumo tests (only testing installation for now)
run: |
$env:TEXTTEST_CI_APPS = "-a complex.libsumo"
python -m pip install (Get-ChildItem -Filter sumo-python-wheels/sumolib-*).FullName (Get-ChildItem -Filter sumo-python-wheels/traci-*).FullName
python -m pip install (Get-ChildItem -Filter libsumo-python-${{ matrix.python_version }}-wheels/libsumo-*).FullName
tests\runCiTests.bat $env:pythonLocation\Scripts\texttestc.py
# tests\runCiTests.bat $env:pythonLocation\Scripts\texttestc.py

- name: Compressing test results
if: failure()
Expand Down

0 comments on commit 18e8725

Please sign in to comment.