CI: WIP
Some checks failed
/ build (push) Failing after 6s
/ test (push) Successful in 6s

This commit is contained in:
phil 2025-02-25 03:12:46 +01:00
parent 22d0a9852c
commit 9f7b090273
2 changed files with 4 additions and 4 deletions

View file

@ -28,13 +28,13 @@ jobs:
run: .venv/bin/pytest -s tests/basic.py run: .venv/bin/pytest -s tests/basic.py
- name: Get version - 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 - name: Version
run: echo $VERSION run: echo $VERSION
- name: Get distance from tag - 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 - name: Distance
run: echo $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) - name: Check if the container should be built (distance from git tag is 0, or force build)
id: builder id: builder
env: env:
RUN: ${{ toJSON(inputs.build || env.DISTANCE == "0" }} RUN: ${{ toJSON(inputs.build || env.DISTANCE == "0") }}
run: | run: |
echo "run=$RUN" >> $GITHUB_OUTPUT echo "run=$RUN" >> $GITHUB_OUTPUT
echo "Run build: $RUN" echo "Run build: $RUN"

View file

@ -19,7 +19,7 @@ jobs:
- name: Install the latest version of uv - name: Install the latest version of uv
uses: astral-sh/setup-uv@v4 uses: astral-sh/setup-uv@v4
with: with:
version: "0.5.16" version: "0.6.3"
- name: Install - name: Install
run: uv sync run: uv sync