Update release notes. #2159
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: Python application | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: ANDES Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-variant: Miniforge3 | |
miniforge-version: latest | |
use-mamba: true | |
python-version: '3.11' | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: test-env | |
- shell: bash -el {0} | |
name: Install dependencies | |
run: | | |
mamba install -y nbmake pytest-xdist line_profiler flake8 pytest | |
mamba install --file requirements.txt --file requirements-extra.txt | |
pip install -e . | |
- shell: bash -el {0} | |
name: Run pip check | |
run: | | |
pip check | |
- shell: bash -el {0} | |
name: Lint with flake8 | |
if: github.event_name == 'pull_request' | |
run: | | |
flake8 . | |
- shell: bash -el {0} | |
name: Run tests | |
run: | | |
pytest | |
pytest --nbmake examples --ignore=examples/verification | |
- shell: bash -el {0} | |
name: Build and publish if tagged | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
python setup.py sdist | |
pip install twine | |
twine upload dist/* | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} |