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
|
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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue