Skip to content

Commit

Permalink
Added test cases action for 3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 6, 2024
1 parent d899c17 commit 54999eb
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/macos-tests-3.13.yml
Original file line number Diff line number Diff line change
@@ -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=../../
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/ubuntu-tests-3.13.yml
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 54999eb

Please sign in to comment.