Skip to content

35 populate documentation with tutorials and configuration guides #194

35 populate documentation with tutorials and configuration guides

35 populate documentation with tutorials and configuration guides #194

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches: [ main ]
jobs:
build:
if: github.repository == 'cseptesting/floatcsep'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
generate-run-shell: true
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Install floatCSEP
run: |
pip install pytest pytest-cov vcrpy==4.3.1
pip install --no-deps -e .
python -c "import floatcsep; print('Version: ', floatcsep.__version__)"
- name: Test with pytest
run: |
pytest --durations=0 --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) -t ${{ secrets.CODECOV_TOKEN }}