Skip to content

Commit 693f207

Browse files
authored
ci: add publish workflow (#63)
1 parent 463935d commit 693f207

File tree

3 files changed

+52
-5
lines changed

3 files changed

+52
-5
lines changed

.github/pull_request_template.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
# Benchmark addition
1+
# Pull Request Title
22

33
## Description
44

5-
State which benchmark you are importing and explain
5+
State the reason for your Pull Request and explain
66
any changes you have made.
77

8-
## Checklist
8+
## Checklist for adding a new benchmark
99

1010
- [ ] Benchmark class is fully implemented, including
1111
all abstract method implementations.
1212
- [ ] Benchmark is fully tested following our standard
1313
testing pattern.
1414
- [ ] Input data uploaded to HF is validated and correct.
1515
- [ ] The corresponding documentation is added and up to date.
16-
- [ ] The ui code is added and up-to-date and has been tested.
16+
- [ ] The UI code is added and up-to-date and has been tested.
1717
- [ ] Our license has been added to any Python file.
18+
19+
## Checklist for a release PR (merge to main)
20+
21+
- [ ] CHANGELOG has been updated
22+
- [ ] Version number as been increased

.github/workflows/publish.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish 🚀
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
publish:
12+
runs-on: instadeep-ci
13+
container:
14+
image: ubuntu:latest
15+
16+
steps:
17+
- name: Git setup
18+
run: |
19+
apt-get update && apt-get install -y \
20+
coreutils \
21+
git
22+
git config --system --add safe.directory $GITHUB_WORKSPACE
23+
24+
- name: Checkout code 📦
25+
uses: actions/checkout@v4
26+
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v6
29+
30+
- name: Build and publish
31+
run: |
32+
uv build
33+
uv publish --token ${{secrets.PYPI_TOKEN}}
34+
35+
- name: Create tag
36+
run: |
37+
TAG="v$(uv version | awk '{print $2}')"
38+
git tag $TAG
39+
git push origin $TAG

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mlipaudit"
3-
version = "0.0.1a0"
3+
version = "0.0.1a1"
44
description = "Library and CLI tool for benchmarking ML Interatomic Potentials"
55
readme = "README.md"
66
authors = [
@@ -50,3 +50,6 @@ omit = [
5050
"app.py",
5151
"benchmarks_cli.py"
5252
]
53+
54+
[project.urls]
55+
"Homepage" = "https://github.com/instadeepai/mlipaudit/"

0 commit comments

Comments
 (0)