Skip to content

Commit

Permalink
Merge pull request #194 from sahiljhawar/add_coveralls
Browse files Browse the repository at this point in the history
This PR fixes the coveralls call.
  • Loading branch information
mcoughlin authored Aug 7, 2023
2 parents 628db61 + 2ce2229 commit b6243f1
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
sudo apt-get update
# sudo apt-get install gfortran swig libhdf5-serial-dev libmpich-dev
sudo apt-get update
sudo apt install -y openmpi-bin libopenmpi-dev gfortran build-essential libblas3 libblas-dev liblapack3 liblapack-dev libatlas-base-dev texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super
sudo apt install -y openmpi-bin libopenmpi-dev gfortran build-essential libblas3 libblas-dev liblapack3 liblapack-dev libatlas-base-dev texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super
python -m pip install --upgrade git+https://github.com/bitranox/wrapt_timeout_decorator.git
python -m pip install pytest pytest-cov flake8 pytest-aiohttp sqlparse freezegun PyJWT joblib tensorflow afterglowpy coveralls
python -m pip install .
Expand All @@ -77,32 +77,12 @@ jobs:
psql -U nmma -h localhost -c "GRANT ALL PRIVILEGES ON DATABASE nmma TO nmma;" nmma
- name: Test with pytest
run: |
pwd
ls
py.test nmma/tests/*
python -m coverage run --source nmma -m pytest nmma/tests/*
env:
LD_LIBRARY_PATH: .:/home/runner/work/nmma/nmma/MultiNest/lib # for Linux
- name: Combine and upload coverage
- name: Run Coveralls
if: ${{ success() }}
run: |
python -m coverage combine
python -m coverage xml -i
python -m coveralls --service=github
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true

coverage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Finish coverage collection
run: |
python -m pip install -U pip
python -m pip install -U coveralls
python -m coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b6243f1

Please sign in to comment.