Skip to content

Commit

Permalink
try windows CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
mRcSchwering committed Dec 8, 2023
1 parent 05f8ec2 commit ed3f930
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 56 deletions.
88 changes: 34 additions & 54 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
target: [x86_64, x86, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -46,53 +46,37 @@ jobs:
pip install -r python/requirements.txt
pip install pytest
pytest tests/fast
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
# uses: uraimo/run-on-arch-action@v2.5.0
# with:
# arch: ${{ matrix.target }}
# distro: ubuntu22.04
# githubToken: ${{ github.token }}
# install: |
# apt-get update
# apt-get install -y --no-install-recommends python3 python3-pip
# pip3 install -U pip pytest
# run: |
# set -e
# pip3 install magicsoup --find-links dist --force-reinstall
# pytest
# TODO: fix windows builds
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# target: [x64, x86]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# pip install magicsoup --find-links dist --force-reinstall
# pip install pytest
# pytest
windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
- name: pytest
if: ${{ startsWith(matrix.target, 'x86') }}
shell: bash
run: |
set -e
pip install magicsoup --find-links dist --force-reinstall
pip install pytest
pytest tests/fast
macos:
runs-on: macos-latest
Expand Down Expand Up @@ -121,12 +105,8 @@ jobs:
run: |
set -e
pip install magicsoup --find-links dist --force-reinstall
# TODO: fix tests
# run: |
# set -e
# pip install magicsoup --find-links dist --force-reinstall
# pip install pytest
# pytest
pip install pytest
pytest tests/fast
sdist:
runs-on: ubuntu-latest
Expand All @@ -146,7 +126,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: [linux, macos, sdist]
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# necessary to run package
numpy>=1.24.0,<1.25.0
torch>=2.0.0,<2.1.0
numpy>=1.24.0,<1.27.0
torch>=2.0.0,<2.2.0

0 comments on commit ed3f930

Please sign in to comment.