Skip to content

bump versions for jax, jaxlib, objax, flax, chex (fixes #32) #63

bump versions for jax, jaxlib, objax, flax, chex (fixes #32)

bump versions for jax, jaxlib, objax, flax, chex (fixes #32) #63

Workflow file for this run

name: ci-cd
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- .github/workflows/ci-cd.yaml
- src/**
- tests/**
release:
types:
- published
jobs:
check-quality:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install ".[quality]"
- name: check-quality
run: |
ruff src tests benchmarks examples
black --check --diff --preview src tests benchmarks examples
run-tests:
needs: check-quality
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
- name: run-tests
run: pytest tests/ -s --durations 0 --disable-warnings
deploy-docs:
needs: run-tests
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[docs]"
- name: deploy-to-gh-pages
run: mkdocs gh-deploy --force
publish-package:
needs: deploy-docs
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: build-package
run: hatch build
- name: publish-package
run: hatch publish --user __token__ --auth $PYPI_TOKEN
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}