From 3896cdf0e4c05e0bd4eb6903725b932cb5c6f2f1 Mon Sep 17 00:00:00 2001 From: golmschenk Date: Sun, 28 Jan 2024 00:33:36 -0500 Subject: [PATCH] Switch to hatch CI --- .github/workflows/build_and_test.yaml | 23 +++++++++++++++++++++ .github/workflows/build_wheels.yml | 29 --------------------------- 2 files changed, 23 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/build_and_test.yaml delete mode 100644 .github/workflows/build_wheels.yml diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml new file mode 100644 index 00000000..56a5279a --- /dev/null +++ b/.github/workflows/build_and_test.yaml @@ -0,0 +1,23 @@ +name: build_and_test + +on: [ push, pull_request ] + +jobs: + build: + name: build_and_test_on_${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, windows-latest, macos-latest ] + steps: + - uses: actions/checkout@v3 + + - name: install_hatch + run: pipx install hatch + + - name: run_tests + run: hatch run test + + - name: build_dist + run: hatch build diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml deleted file mode 100644 index 373429cd..00000000 --- a/.github/workflows/build_wheels.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: build_wheels - -on: [push, pull_request] - -jobs: - build_wheels: - name: build_wheels_on_${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-xlarge] - - steps: - - uses: actions/checkout@v4 - - - name: ensure_pipx_on_macos - if: runner.os == 'macOS' - run: | - brew install pipx - pipx ensurepath - - - name: build_wheels - uses: pypa/cibuildwheel@v2.16.3 - - - uses: actions/upload-artifact@v4 - with: - name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} - path: ./wheelhouse/*.whl \ No newline at end of file