Fix a few typos in docs #276
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.12'] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up conda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| activate-environment: SALib | |
| python-version: ${{ matrix.python-version }} | |
| channels: conda-forge | |
| miniforge-variant: Mambaforge | |
| miniforge-version: latest | |
| use-mamba: true | |
| channel-priority: true | |
| - name: Get Date | |
| id: get-date | |
| run: echo "::set-output name=month::$(/bin/date -u '+%Y%m')" | |
| shell: bash | |
| - name: Cache conda | |
| uses: actions/cache@v3 | |
| env: | |
| # Increase this value to reset cache if environment.yml has not changed | |
| CACHE_NUMBER: 0 | |
| with: | |
| path: ${{ env.CONDA }}/envs/SALib | |
| key: | |
| ${{ runner.os }}--${{ steps.get-date.outputs.month }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} | |
| id: envcache | |
| - name: Update Conda Environment | |
| run: | | |
| mamba env update -n SALib -f environment.yml | |
| if: steps.envcache.outputs.cache-hit != 'true' | |
| - name: Install package | |
| run: | | |
| conda activate SALib | |
| pip install .[test] | |
| - name: Test | |
| if: matrix.python-version != '3.12' | |
| run: | | |
| conda activate SALib | |
| pytest | |
| - name: Test with coverage and uploads | |
| if: matrix.python-version == '3.12' | |
| run: | | |
| conda activate SALib | |
| python -m pip install coveralls | |
| pytest --cov SALib --cov-report html --verbose | |
| coveralls |