Skip to content

Merge pull request #45 from shenyulu/dev #12

Merge pull request #45 from shenyulu/dev

Merge pull request #45 from shenyulu/dev #12

Workflow file for this run

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/