Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinstn committed Oct 15, 2024
1 parent 294300f commit f301311
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,12 @@ on:
- main

jobs:
build-linux:
runs-on: 'ubuntu-latest'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: PyO3/maturin-action@v1
with:
command: build
args: --release -i python${{ matrix.python-version }}
target: x86_64
manylinux: auto

- name: Upload Python Wheel
uses: actions/upload-artifact@v4
with:
name: python-wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: target/wheels/*.whl

- name: List Wheels
run: ls -l target/wheels/*.whl

build-other:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-13, macos-latest]
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
- os: self-hosted
python-version: "3.8"
- os: self-hosted
python-version: "3.9"
steps:
- name: Set up Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -77,7 +48,7 @@ jobs:
path: target/wheels/*.whl

test:
needs: [build-linux]
needs: [build]
runs-on: ubuntu-latest

steps:
Expand All @@ -101,7 +72,7 @@ jobs:
run: rm -rf natsort_rs && python -m unittest discover tests

deploy:
needs: [test, build-other]
needs: [test, build]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit f301311

Please sign in to comment.