Skip to content

Commit

Permalink
yml
Browse files Browse the repository at this point in the history
  • Loading branch information
homerjed committed Jan 10, 2025
1 parent f453400 commit 525752a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: >-
Expand All @@ -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: >-
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 525752a

Please sign in to comment.