Skip to content

Revert "update dependencies" #109

Revert "update dependencies"

Revert "update dependencies" #109

Workflow file for this run

name: Nightly
on:
push:
branches: [main]
jobs:
build_and_publish:
name: Build and publish on PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Update pyproject.toml
# Taken from https://github.com/aesara-devs/aesara/pull/1375
run: |
curl -sSLf https://github.com/TomWright/dasel/releases/download/v2.0.2/dasel_linux_amd64 \
-L -o /tmp/dasel && chmod +x /tmp/dasel
/tmp/dasel put -f pyproject.toml project.name -v blackjax-nightly
/tmp/dasel put -f pyproject.toml tool.setuptools_scm.version_scheme -v post-release
/tmp/dasel put -f pyproject.toml tool.setuptools_scm.local_scheme -v no-local-version
- name: Build the sdist and wheel
run: |
python -m pip install -U pip
python -m pip install build
python -m build
- name: Check sdist install and imports
run: |
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/blackjax-nightly-*.tar.gz
venv-sdist/bin/python -c "import blackjax"
- name: Check wheel install and imports
run: |
mkdir -p test-wheel
cd test-wheel
python -m venv venv-wheel
venv-wheel/bin/python -m pip install ../dist/blackjax_nightly-*.whl
- name: Publish to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_NIGHTLY_TOKEN }}