Skip to content

Fixing python 3.12 issues for MacOS #5

Fixing python 3.12 issues for MacOS

Fixing python 3.12 issues for MacOS #5

Workflow file for this run

name: macos python=3.9
# 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.9"
- name: Install spare scores
run: |
python -m pip cache purge
pip install setuptools twine wheel
python setup.py bdist_wheel
cd dist
WHEEL_FILE=$(ls spare_scores*)
pip install "$WHEEL_FILE"
- name: Download dependencies
run: pip install setuptools && pip install .
- name: Generate Coverage Report
run: |
pip install pytest-cov
cd tests/unit && pytest --cov=../../ --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: CBICA/spare_score