Merge pull request #26 from shenyulu/dev #10
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/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
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/checkout@v3 | |
- 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/ |