Skip to content

Commit

Permalink
Added extra CI job to run tests on each commit, wheels are now only
Browse files Browse the repository at this point in the history
built upon release
  • Loading branch information
bathal1 committed Aug 9, 2024
1 parent 4e2fa72 commit 069d3e3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pip

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
build:
name: Build with Pip
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.8", "3.11"]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set min macOS version
if: runner.os == 'macOS'
run: |
echo "MACOS_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV
- name: Build and install Cholespy
run: python -m pip install .

- name: Install test dependencies
run: python -m pip install pytest numpy scipy

- name: Test
run: python -m pytest tests
4 changes: 0 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Wheels

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published
Expand Down

0 comments on commit 069d3e3

Please sign in to comment.