updated changelog #10
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: build | |
| on: | |
| push: | |
| paths: | |
| - "pyproject.toml" | |
| pull_request: | |
| paths: | |
| - "pyproject.toml" | |
| jobs: | |
| build-and-validate: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # needed for setuptools-scm | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade pip and install build tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build setuptools-scm wheel twine | |
| - name: Build distributions | |
| run: python -m build --sdist --wheel | |
| - name: List dist/ | |
| run: ls -l dist/ | |
| - name: Validate distributions with twine | |
| run: twine check dist/* | |
| - name: Test install wheel | |
| run: | | |
| python -m venv venv_test | |
| source venv_test/bin/activate | |
| pip install dist/*.whl | |
| python -c "import pySWATPlus; print(pySWATPlus.__version__)" |