Bump 0.2.0 #33
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
environment: | |
name: pypi | |
url: https://pypi.org/p/pypowsybl2grid | |
permissions: | |
id-token: write | |
steps: | |
- name: Install Ubuntu packages | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
sudo apt update | |
sudo apt -y install maven python3.9 python3.9-dev python3.9-venv pipx | |
pipx install poetry | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: poetry install | |
- name: Build wheel | |
run: poetry build | |
- name: Run tests | |
run: poetry run pytest | |
- name: Publish on PyPi | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: pypa/gh-action-pypi-publish@release/v1 |