Skip to content

Commit

Permalink
ga: added build test from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloitu committed Mar 7, 2024
1 parent b3895d1 commit c742ea4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,32 @@ jobs:
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
run: |
bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
build_pip:
# if: github.repository == 'SCECcode/pycsep'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.9']
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install pyCSEP
run: |
pip install -e .
python -c "import csep; print('Version: ', csep.__version__)"
- name: Test with pytest
run: |
pip install vcrpy==4.3.1 pytest pytest-cov
pytest --cov=./ --cov-config=.coveragerc

0 comments on commit c742ea4

Please sign in to comment.