diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..0a59d63 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,35 @@ +name: Run Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.9, '3.10', 3.11, 3.12] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies with Poetry + run: | + pip install poetry + poetry install + + - name: Run Tests with Coverage + if: ${{ matrix.python-version == 3.12 }} + run: | + poetry run coverage run --source ./pydhn -m unittest -b + poetry run coverage report -m + + - name: Run Tests + if: ${{ matrix.python-version != 3.12 }} + run: | + poetry run python -m unittest -b \ No newline at end of file diff --git a/setup.py b/setup.py index f987fac..aafb378 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( name="pydhn", - version="0.1.2", + version="0.1.3", description="A library for the simulation of district heating networks.", url="https://www.github.com/idiap/pydhn", author="Roberto Boghetti, Giuseppe Peronato",