Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coveralls #359

Merged
merged 9 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -v --editable .[lint]
pip install -v --editable '.[lint,test]'
pip install "coveralls>=3.0.0"

- name: black check
run: |
Expand All @@ -48,9 +49,16 @@ jobs:
run: |
python -m pylint src/gstools/

#- name: cython-lint check
#run: |
#cython-lint src/gstools/
- name: cython-lint check
run: |
cython-lint src/gstools/

- name: coveralls check
run: |
python -m pytest --cov gstools --cov-report term-missing -v tests/
python -m coveralls --service=github
LSchueler marked this conversation as resolved.
Show resolved Hide resolved
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_wheels:
name: wheels for ${{ matrix.os }}
Expand Down Expand Up @@ -110,7 +118,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build "coveralls>=3.0.0"
pip install build

- name: Install GSTools
env:
Expand All @@ -119,12 +127,9 @@ jobs:
pip install -v --editable .[test]

- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install "numpy${{ matrix.ver.np }}" "scipy${{ matrix.ver.sp }}"
python -m pytest --cov gstools --cov-report term-missing -v tests/
python -m coveralls --service=github
python -m pytest -v tests/

- name: Build sdist
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/gstools/field/summator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if OPENMP:
cimport openmp

cimport numpy as np
from libc.math cimport cos, pi, sin, sqrt
from libc.math cimport cos, sin
LSchueler marked this conversation as resolved.
Show resolved Hide resolved


def set_num_threads(num_threads):
Expand Down
Loading