CI: WIP
This commit is contained in:
parent
22d0a9852c
commit
9f7b090273
2 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ jobs:
|
|||
run: .venv/bin/pytest -s tests/basic.py
|
||||
|
||||
- name: Get version
|
||||
run: echo "VERSION=$(.venv/bin/dunamai --style semver)" >> $GITHUB_ENV
|
||||
run: echo "VERSION=$(.venv/bin/dunamai from any --style semver)" >> $GITHUB_ENV
|
||||
|
||||
- name: Version
|
||||
run: echo $VERSION
|
||||
|
||||
- name: Get distance from tag
|
||||
run: echo "DISTANCE=$(.venv/bin/dunamai --format '{distance}')" >> $GITHUB_ENV
|
||||
run: echo "DISTANCE=$(.venv/bin/dunamai from any --format '{distance}')" >> $GITHUB_ENV
|
||||
|
||||
- name: Distance
|
||||
run: echo $DISTANCE
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
- name: Check if the container should be built (distance from git tag is 0, or force build)
|
||||
id: builder
|
||||
env:
|
||||
RUN: ${{ toJSON(inputs.build || env.DISTANCE == "0" }}
|
||||
RUN: ${{ toJSON(inputs.build || env.DISTANCE == "0") }}
|
||||
run: |
|
||||
echo "run=$RUN" >> $GITHUB_OUTPUT
|
||||
echo "Run build: $RUN"
|
||||
|
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
- name: Install the latest version of uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
version: "0.5.16"
|
||||
version: "0.6.3"
|
||||
|
||||
- name: Install
|
||||
run: uv sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue