Skip to content

Commit

Permalink
Consolidate workflows (#29)
Browse files Browse the repository at this point in the history
* Add README badges

* Fix badges

* Consolidate pre-merge workflows
  • Loading branch information
zombie-einstein authored Oct 15, 2024
1 parent f824beb commit 0fc2b12
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 64 deletions.
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

0 comments on commit 0fc2b12

Please sign in to comment.