Skip to content

Commit

Permalink
3rd round of action updates #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jan 25, 2024
1 parent 0a91c9b commit a84b8fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
uses: actions/checkout@v4

- name: Downloading Wheels artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Configuring Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:

steps:
- name: Downloading Wheels artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/wheel-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: git fetch --tags --force

- name: Downloading Wheels artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Configuring Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -136,8 +136,7 @@ jobs:
- name: Running libsumo tests
run: |
python3 -m pip install tools/dist/sumolib-* tools/dist/traci-*
PYTHON_VERSION=${{ matrix.python_version }}
python3 -m pip install python-wheels/libsumo-*cp3${PYTHON_VERSION:2}*
python3 -m pip install python-${{ matrix.python_version }}-wheels/libsumo-*
cd tests
texttest -b ci -v ci -a complex.libsumo
Expand Down Expand Up @@ -165,7 +164,7 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
python tools\build_config\version.py tools\build_config\setup-libsumo.py tools\setup.py
python -m build --wheel tools -o dist --config-setting=--plat-name=win_amd64
- name: Uploading artifacts
if: matrix.build_type == 'libsumo'
uses: actions/upload-artifact@v4
with:
name: libsumo-python-${{ matrix.python_version }}-wheels
path: dist

- name: Building SUMO Wheels
if: matrix.build_type == 'sumo'
run: |
Expand All @@ -97,9 +104,10 @@ jobs:
python -c "import glob, os; f = glob.glob(\`"dist/eclipse_sumo-*\`")[0]; os.rename(f, f.replace(\`"cp38-cp38\`", \`"py2.py3-none\`"))"
- name: Uploading artifacts
if: matrix.build_type == 'sumo'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.build_type }}-python-${{ matrix.python_version }}-wheels
name: sumo-python-wheels
path: dist

- name: Plain libsumo tests
Expand Down Expand Up @@ -135,7 +143,7 @@ jobs:
run: git fetch --tags --force

- name: Downloading Wheels artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Configuring Python
uses: actions/setup-python@v5
Expand All @@ -145,7 +153,7 @@ jobs:
- name: Preparing Python environment
run: |
python -m pip install texttest
python -m pip install (Get-ChildItem -Filter python-sumo-wheels/eclipse_sumo*).FullName
python -m pip install (Get-ChildItem -Filter sumo-python-wheels/eclipse_sumo*).FullName
python -c "import sumo; print('SUMO_HOME=' + sumo.SUMO_HOME)" >> $env:GITHUB_ENV
- name: Running "sumo in the wheel" tests
Expand All @@ -169,8 +177,7 @@ jobs:
run: |
$env:TEXTTEST_CI_APPS = "-a complex.libsumo"
python -m pip install (Get-ChildItem -Filter python-sumo-wheels/sumolib-*).FullName (Get-ChildItem -Filter python-sumo-wheels/traci-*).FullName
$PYTHON_VERSION="${{ matrix.python_version }}".subString(2)
python -m pip install --user (Get-ChildItem -Filter python-libsumo-wheels/libsumo-*cp3$PYTHON_VERSION*).FullName
python -m pip install (Get-ChildItem -Filter libsumo-python-${{ matrix.python_version }}-wheels/libsumo-*).FullName
tests\runCiTests.bat $env:pythonLocation\Scripts\texttestc.py
- name: Compressing test results
Expand All @@ -196,7 +203,7 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

# this step removes the sumolib and traci packages which linux takes care of
- name: Moving artifacts
Expand Down

0 comments on commit a84b8fd

Please sign in to comment.