diff --git a/.github/workflows/macos-tests-3.12.yml b/.github/workflows/macos-tests-3.12.yml new file mode 100644 index 0000000..9717236 --- /dev/null +++ b/.github/workflows/macos-tests-3.12.yml @@ -0,0 +1,33 @@ +name: macos python=3.12 + +# workflow dispatch has been added for testing purposes +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ["macos-13"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Set-up miniconda for macos and ubuntu + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.12 + miniconda-version: "latest" + - name: Create conda env + run: conda create -n spare python=3.12 + - name: Install pip + run: conda run -n spare conda install pip + - name: Install spare scores + run: | + pip install setuptools twine wheel + python -m pip install . + - name: Download dependencies + run: pip install setuptools && pip install . + - name: Run unit tests + run: | + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/macos_test_cases_p3-8.yml b/.github/workflows/macos-tests-3.8.yml similarity index 100% rename from .github/workflows/macos_test_cases_p3-8.yml rename to .github/workflows/macos-tests-3.8.yml diff --git a/.github/workflows/macos_test_cases_p3-12.yml b/.github/workflows/macos_test_cases_p3-12.yml deleted file mode 100644 index 07b06cd..0000000 --- a/.github/workflows/macos_test_cases_p3-12.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: MacOS python=3.12 - -# workflow dispatch has been added for testing purposes -on: [push, pull_request, workflow_dispatch] - -jobs: - build: - runs-on: ["macos-13"] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12.4" - - name: Install spare scores - run: | - pip install -r dev-dependencies.txt - pip install setuptools twine wheel pytest pytest-cov - python -m pip install . - - name: Run unit tests - run: | - cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/ubuntu_test_cases_p3-8.yml b/.github/workflows/ubuntu-tersts-3.8.yml similarity index 100% rename from .github/workflows/ubuntu_test_cases_p3-8.yml rename to .github/workflows/ubuntu-tersts-3.8.yml diff --git a/.github/workflows/ubuntu_test_cases_p3-12.yml b/.github/workflows/ubuntu-tests-3.12.yml similarity index 100% rename from .github/workflows/ubuntu_test_cases_p3-12.yml rename to .github/workflows/ubuntu-tests-3.12.yml