Skip to content

Bump 0.2.0

Bump 0.2.0 #37

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
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