Skip to content

Commit 961aa7a

Browse files
authored
Merge branch 'develop' into fco/expose_more_args
2 parents 0d1c070 + ecb6d88 commit 961aa7a

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
echo "version=$VERSION" >> $GITHUB_OUTPUT
3333
3434
- name: Log in to Docker Hub
35-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
35+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
3636
with:
3737
username: ${{ secrets.DOCKER_USERNAME }}
3838
password: ${{ secrets.DOCKER_PASSWORD }}
3939

4040
- name: Extract metadata (tags, labels) for Docker
4141
id: meta
42-
uses: docker/metadata-action@8e1d5461f02b7886d3c1a774bfbd873650445aa2
42+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
4343
with:
4444
images: vectorinstitute/vector-inference
4545

4646
- name: Build and push Docker image
47-
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991
47+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
4848
with:
4949
context: .
5050
file: ./Dockerfile

.github/workflows/publish.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ jobs:
1212
run: |
1313
sudo apt-get update
1414
sudo apt-get install libcurl4-openssl-dev libssl-dev
15+
1516
- uses: actions/checkout@v4.2.2
16-
- name: Install poetry
17-
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
version: "0.6.6"
22+
enable-cache: true
23+
1824
- uses: actions/setup-python@v5.4.0
1925
with:
2026
python-version: '3.10'
27+
2128
- name: Build package
22-
run: poetry build
29+
run: uv build
30+
2331
- name: Publish package
24-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
25-
with:
26-
user: __token__
27-
password: ${{ secrets.PYPI_API_TOKEN }}
32+
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
jobs:
4040
unit-tests:
4141
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
python-version: ["3.10", "3.11", "3.12"]
4245
steps:
4346
- uses: actions/checkout@v4.2.2
4447

@@ -49,10 +52,10 @@ jobs:
4952
version: "0.5.21"
5053
enable-cache: true
5154

52-
- name: "Set up Python"
55+
- name: "Set up Python ${{ matrix.python-version }}"
5356
uses: actions/setup-python@v5.4.0
5457
with:
55-
python-version-file: ".python-version"
58+
python-version: ${{ matrix.python-version }}
5659

5760
- name: Install the project
5861
run: uv sync --dev

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: check-toml
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: 'v0.9.10'
19+
rev: 'v0.11.0'
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --exit-non-zero-on-fix]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
----------------------------------------------------
44

5+
[![PyPI](https://img.shields.io/pypi/v/vec-inf)](https://pypi.org/project/vec-inf)
56
[![code checks](https://github.com/VectorInstitute/vector-inference/actions/workflows/code_checks.yml/badge.svg)](https://github.com/VectorInstitute/vector-inference/actions/workflows/code_checks.yml)
67
[![docs](https://github.com/VectorInstitute/vector-inference/actions/workflows/docs_deploy.yml/badge.svg)](https://github.com/VectorInstitute/vector-inference/actions/workflows/docs_deploy.yml)
78
[![codecov](https://codecov.io/github/VectorInstitute/vector-inference/branch/develop/graph/badge.svg?token=NI88QSIGAC)](https://app.codecov.io/github/VectorInstitute/vector-inference/tree/develop)

0 commit comments

Comments
 (0)