Version 2024.12.0 #20
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: published easyclimate to pypi | |
on: | |
release: | |
types: | |
- published | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
UnitTesting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull latest code | |
uses: actions/[email protected] | |
- name: Set up Python 3.10 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
- name: Unit testings | |
run: | | |
pip install -r test_requirements.txt | |
pytest --cov src | |
GenerateWHL_PushPyPi: | |
needs: UnitTesting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Run setup.py | |
run: | | |
pip install --upgrade build | |
python -m pip install --upgrade pip | |
python -m build | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
# For real release | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: dist/ |