Plot Refactoring #172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches-ignore: | |
- 'v*' | |
pull_request: | |
jobs: | |
build: | |
if: github.repository == 'SCECcode/pycsep' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# os: [ubuntu-latest, macos-latest] | |
# python-version: ['3.8', '3.9', '3.10', '3.11'] | |
os: [macos-latest ] | |
python-version: [ '3.8' ] | |
include: | |
- os: windows-latest | |
python-version: '3.10' | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
generate-run-shell: true | |
environment-file: requirements.yml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
- name: Install pyCSEP | |
run: | | |
pip install --no-deps -e . | |
pip install rasterio | |
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 | |
- name: Upload coverage | |
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 |