Skip to content

Commit

Permalink
minor change in codecov to upload correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Sep 2, 2024
1 parent d2e6378 commit bae560a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/macos-tests-3.8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macos build python=3.8
name: macos tests python=3.8

# workflow dispatch has been added for testing purposes
on: [push, pull_request, workflow_dispatch]
Expand All @@ -12,18 +12,28 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Set-up miniconda for macos and ubuntu
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
miniconda-version: "latest"
- name: Create conda env
run: conda create -n spare python=3.8
- name: Install pip
run: conda run -n spare conda install pip
- name: Install spare scores
run: |
python -m pip cache purge
pip install -r requirements.txt
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 pytest-cov
pip install pytest-cov
cd tests/unit && pytest --cov=../../ --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/[email protected]
Expand Down

0 comments on commit bae560a

Please sign in to comment.