diff --git a/.github/workflows/macos-tests-3.13.yml b/.github/workflows/macos-tests-3.13.yml new file mode 100644 index 0000000..3adb375 --- /dev/null +++ b/.github/workflows/macos-tests-3.13.yml @@ -0,0 +1,24 @@ +name: macos build + +# workflow dispatch has been added for testing purposes +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ["macos-latest"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Install spare scores + run: | + python -m pip cache purge + pip install -r requirements.txt + pip install setuptools twine wheel + python -m pip install . + - name: Run unit tests + run: | + pip install pytest pytest-cov + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/macos-tests-3.8.yml b/.github/workflows/macos-tests-3.9.yml similarity index 93% rename from .github/workflows/macos-tests-3.8.yml rename to .github/workflows/macos-tests-3.9.yml index 08c3735..0c3cfd5 100644 --- a/.github/workflows/macos-tests-3.8.yml +++ b/.github/workflows/macos-tests-3.9.yml @@ -1,4 +1,4 @@ -name: macos tests python=3.8 +name: macos tests python=3.9 # workflow dispatch has been added for testing purposes on: [push, pull_request, workflow_dispatch] @@ -11,12 +11,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.9" - name: Set-up miniconda for macos and ubuntu uses: conda-incubator/setup-miniconda@v2 with: auto-update-conda: true - python-version: 3.8 + python-version: 3.9 miniconda-version: "latest" - name: Create conda env run: conda create -n spare python=3.8 diff --git a/.github/workflows/ubuntu-tests-3.13.yml b/.github/workflows/ubuntu-tests-3.13.yml new file mode 100644 index 0000000..64dd4e8 --- /dev/null +++ b/.github/workflows/ubuntu-tests-3.13.yml @@ -0,0 +1,23 @@ +name: ubuntu build + +# workflow dispatch has been added for testing purposes +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ["ubuntu-latest"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Install spare scores + run: | + python -m pip cache purge + pip install -r requirements.txt + pip install setuptools twine wheel + python -m pip install . + - name: Run unit tests + run: | + cd tests/unit && python -m unittest discover -s . -p "*.py" diff --git a/.github/workflows/ubuntu-tests-3.8.yml b/.github/workflows/ubuntu-tests-3.9.yml similarity index 91% rename from .github/workflows/ubuntu-tests-3.8.yml rename to .github/workflows/ubuntu-tests-3.9.yml index 0c6b9ba..68b81ff 100644 --- a/.github/workflows/ubuntu-tests-3.8.yml +++ b/.github/workflows/ubuntu-tests-3.9.yml @@ -1,4 +1,4 @@ -name: ubuntu build python=3.8 +name: ubuntu build python=3.9 # workflow dispatch has been added for testing purposes on: [push, pull_request, workflow_dispatch] @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.9" - name: Install spare scores run: | python -m pip cache purge