Skip to content

Commit 956fe17

Browse files
committed
Adjust workflows
1 parent 910b4fa commit 956fe17

3 files changed

Lines changed: 33 additions & 14 deletions

File tree

.github/workflows/test-pr.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,30 @@ jobs:
2222
install_url: https://releases.nixos.org/nix/nix-2.32.0/install
2323
extra_nix_config:
2424
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
25-
2625
- uses: cachix/cachix-action@v12
2726
with:
2827
name: k-framework
2928
signingKey: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
3029
skipPush: true
31-
- uses: actions/setup-python@v4
30+
- name: 'Install Python'
31+
uses: actions/setup-python@v6
3232
with:
33-
python-version: '3.11'
34-
- name: 'Install Poetry'
33+
python-version: '3.10'
34+
- name: 'Get uv release'
35+
id: uv_release
3536
run: |
36-
curl -sSL https://install.python-poetry.org | python3 -
37-
poetry --version
38-
- name: 'Formatting and Type Checking'
39-
run: make
37+
echo uv_version=$(cat deps/uv_release) >> "${GITHUB_OUTPUT}"
38+
- name: 'Install uv'
39+
uses: astral-sh/setup-uv@v7
40+
with:
41+
version: ${{ steps.uv_release.outputs.uv_version }}
42+
- name: 'Run code quality checks'
43+
run: make check
44+
- name: 'Run pyupgrade'
45+
run: make pyupgrade
46+
- name: 'Run unit tests'
47+
run: make cov-unit
4048
- name: 'Kup list works'
41-
run: poetry run kup list
49+
run: uv run kup list
4250
- name: 'Build via Nix'
4351
run: nix build

.github/workflows/update-version.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,29 @@ jobs:
2323
run: |
2424
git config user.name devops
2525
git config user.email devops@runtimeverification.com
26-
- name: 'Install Poetry'
27-
uses: Gr1N/setup-poetry@v9
26+
- name: 'Install Python'
27+
uses: actions/setup-python@v6
28+
with:
29+
python-version: '3.10'
30+
- name: 'Get uv release'
31+
id: uv_release
32+
run: |
33+
echo uv_version=$(cat deps/uv_release) >> "${GITHUB_OUTPUT}"
34+
- name: 'Install uv'
35+
uses: astral-sh/setup-uv@v7
36+
with:
37+
version: ${{ steps.uv_release.outputs.uv_version }}
2838
- name: 'Install Nix'
2939
uses: cachix/install-nix-action@v31.7.0
3040
with:
3141
install_url: https://releases.nixos.org/nix/nix-2.32.0/install
3242
extra_nix_config: |
3343
substituters = http://cache.nixos.org https://hydra.iohk.io
3444
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
35-
- name: 'Update Poetry files'
45+
- name: 'Update uv files'
3646
run: |
37-
poetry update
38-
git add . && git commit -m "Sync Poetry files" || true
47+
uv lock --upgrade
48+
git add uv.lock && git commit -m "Sync uv lock file" || true
3949
- name: 'Update Nix flake inputs'
4050
run: |
4151
RV_NIX_TOOLS_VERSION=$(cat deps/rv-nix-tools)

deps/uv_release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.9.22

0 commit comments

Comments
 (0)