Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate workflows #29

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/build-package.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/code-formatting.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/pre-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: pre-merge
run-name: ${{ github.actor }} pre-merge checks
on: [pull_request]

jobs:
run-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: false
installer-parallel: true
- run: poetry install
- run: pip install --upgrade "jax[cpu]"
- run: pytest -vvs

run-linting:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: false
installer-parallel: true
- run: poetry install
- run: pre-commit install
- run: task lint

build-package:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: false
installer-parallel: true
- run: poetry install
- run: poetry build
- run: echo "VERSION=$(poetry version --short)" >> $GITHUB_ENV
- run: ls dist
19 changes: 0 additions & 19 deletions .github/workflows/run-tests.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Add a [tqdm](https://github.com/tqdm/tqdm) progress bar to your JAX scans and loops.

![PyPI - Version](https://img.shields.io/pypi/v/jax-tqdm)
![PyPI - Downloads](https://img.shields.io/pypi/dm/jax-tqdm)

## Installation

Install with pip:
Expand Down