Skip to content

Commit

Permalink
[CI] Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie committed Aug 4, 2023
1 parent d8e71ca commit f07a0b6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest, windows-latest, macos-latest]
os: [macos-latest]
# exclude: # Temporarily disable release for macos and python 3.8 as there is a bug with openblas
# - os: macos-latest
# python-version: 3.8
Expand Down Expand Up @@ -51,9 +51,15 @@ jobs:
shell: bash -e {0}
run: python -m pip install pytest-xvfb
if: runner.os == 'Linux'
- name: Test imports
shell: bash -e {0}
run: |
python -c "import libmetgem"
python -c "from libmetgem import IS_CYTHONIZED; assert IS_CYTHONIZED == True"
python -c "from libmetgem.cosine import cosine_score; print(cosine_score)"
- name: Test with pytest
shell: bash -e {0}
run: cd tests && pytest --cov=libmetgem --cov-report=xml
run: pytest --cov=libmetgem --cov-report=xml -s -x
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit f07a0b6

Please sign in to comment.