File tree Expand file tree Collapse file tree 5 files changed +22
-13
lines changed
Expand file tree Collapse file tree 5 files changed +22
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change 3939jobs :
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
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments