From 525752ad019e96da0476be117945cb8ef25f7fae Mon Sep 17 00:00:00 2001 From: homerjed Date: Fri, 10 Jan 2025 12:06:57 +0100 Subject: [PATCH] yml --- .github/workflows/publish.yml | 33 ++++++++++++++++++++++++++++----- pyproject.toml | 2 +- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c8e7993..6835280 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,28 @@ on: - pyproject.toml jobs: + test: + name: Test 🔍 package 🗂️ + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Setup 🛠️ Python 🐍 + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install 🛠️ dependencies 📚 + run: | + pip install --upgrade pip + pip install -e . + pip install --requirement=tests/requirements.txt + + - name: Run ⏱️ tests 📊 + run: pytest + build: name: Build distribution 📦 runs-on: ubuntu-latest @@ -19,9 +41,8 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 - strategy: - matrix: - python-version: ["3.10", "3.11", "3.12"] + with: + python-version: "3.12" - name: Install pypa/build run: >- @@ -34,9 +55,11 @@ jobs: - name: Store the distribution packages uses: actions/upload-artifact@v4 with: - python-version: ${{ matrix.python-version }} name: python-package-distributions - path: dist-py${{ matrix.python-version }}/ + path: dist/ + # python-version: ${{ matrix.python-version }} + # name: python-package-distributions + # path: dist-py${{ matrix.python-version }}/ publish-to-pypi: name: >- diff --git a/pyproject.toml b/pyproject.toml index 6703663..17e8551 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sbiax" -version = "0.0.36" +version = "0.0.37" description = "Fast, parallel and lightweight simulation-based inference in JAX." readme = "README.md" requires-python =">=3.10"