Skip to content

SBML: add SBML semantic test suite #23

SBML: add SBML semantic test suite

SBML: add SBML semantic test suite #23

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install package
run: python -m pip install .[test]
- name: Test with pytest
run: pytest
publish:
if: github.ref_type == 'tag'
needs: test
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/poincare
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1