Update data_paths.yaml #123
This file contains hidden or 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: CI | |
| on: [push] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.11' | |
| - name: Add conda to system path | |
| run: | | |
| # $CONDA is an environment variable pointing to the root of the miniconda directory | |
| echo $CONDA/bin >> $GITHUB_PATH | |
| - name: Install dependencies | |
| run: conda env update --file environment.yaml | |
| - name: Test with pytest | |
| run: | | |
| conda run -n providentia-env_v3.0.0 coverage run -m pytest tests | |
| conda run -n providentia-env_v3.0.0 coverage report -i -m | |
| - name: Generate coverage badge | |
| run: conda run -n providentia-env_v3.0.0 coverage-badge > coverage.svg | |
| - name: Update coverage badge | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add coverage.svg || echo "No coverage.svg to add" | |
| git diff --cached --quiet || ( | |
| git commit -m "Update coverage badge" | |
| git push | |
| ) |