Skip to content

Commit

Permalink
mod build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoli committed Aug 1, 2024
1 parent c8a07ae commit 4d07d30
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt
pip install -e ."[dev]"
- name: tests
run: |
coverage run --omit gators/*/test*.py -m pytest gators && coverage report && coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
# - name: tests
# run: |
# coverage run --omit gators/*/test*.py -m pytest gators && coverage report && coverage xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: coverage.xml

build_wheels:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Build MacOS wheel
if: matrix.os == 'macos-latest'
env:
CIBW_BUILD: "cp37-macosx_x86_64 cp38-macosx_x86_64 cp311-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64 cp312-macosx_x86_64"
CIBW_BUILD: "cp37-macosx_x86_64" # cp38-macosx_x86_64 cp311-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64 cp312-macosx_x86_64"
CIBW_BEFORE_ALL: brew install libomp
CIBW_BEFORE_BUILD_MACOS: >
python -m pip install pip -U &&
Expand All @@ -106,12 +106,11 @@ jobs:
- name: Build linux wheels
if: matrix.os == 'ubuntu-latest'
env:
CIBW_BUILD: "cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 "
CIBW_BUILD: "cp37-manylinux_x86_64" # cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 "
CIBW_BEFORE_BUILD_LINUX: >
python -m pip install pip -U &&
python -m pip install setuptools &&
python -m pip install setuptools -U &&
python -m pip install install "numpy<1.25" &&
python -m pip install install numpy &&
python -m pip install cython
run: python -m cibuildwheel --platform linux --output-dir dist
Expand Down

0 comments on commit 4d07d30

Please sign in to comment.