Skip to content

Commit

Permalink
ECC-1972: support for Windows binary wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Nov 23, 2024
1 parent da690b9 commit 05d33e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/build-wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@ on:
# Allow to be called from another workflow
workflow_call: ~

# repository_dispatch:
# types: [eccodes-updated]

push:
tags-ignore:
- '**'
paths:
- 'scripts/common.sh'
- 'scripts/select-python-windows.sh'
- 'scripts/wheel-windows.sh'
- 'scripts/build-windows.sh'
- 'scripts/test-windows.sh'
- 'scripts/copy-dlls.py'
- 'scripts/copy-licences.py'
- '.github/workflows/build-wheel-windows.yml'

Expand Down Expand Up @@ -183,21 +179,13 @@ jobs:

- run: pip freeze

- name: Get some data
run: |
curl -L https://get.ecmwf.int/repository/test-data/metview/gallery/2m_temperature.grib -o data.grib
curl -L https://github.com/ecmwf/climetlab/raw/main/docs/examples/test.grib -o climetlab.grib
curl -L https://github.com/ecmwf/climetlab/raw/main/docs/examples/test.nc -o climetlab.nc
ls -l
working-directory: tests

- run: ECCODES_PYTHON_TRACE_LIB_SEARCH=1 pytest --verbose -s
working-directory: tests
timeout-minutes: 2


deploy:
#if: ${{ github.event_name == 'release' }}
if: ${{ github.ref_type == 'tag' || github.event_name == 'release' }}

needs: [test, build]

Expand All @@ -222,7 +210,7 @@ jobs:
with:
name: wheel-windows-${{ matrix.python-version }}-${{ matrix.architecture }}

- run: twine upload --repository testpypi *.whl
- run: twine upload *.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_API_TOKEN }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GIT_ECBUILD=https://github.com/ecmwf/ecbuild.git
ECBUILD_VERSION=master

GIT_ECCODES=https://github.com/ecmwf/eccodes.git
ECCODES_VERSION=2.38.3
ECCODES_VERSION=2.39.0
ECCODES_COMMON_CMAKE_OPTIONS="-DENABLE_PNG=ON -DENABLE_JPG=ON -DENABLE_NETCDF=0 -DENABLE_EXAMPLES=0"

GIT_AEC=https://github.com/MathisRosenhauer/libaec.git
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest
pytest

0 comments on commit 05d33e5

Please sign in to comment.