Skip to content

Commit f9aee54

Browse files
committed
rename main -> check-python-version.py, hopefully fix action invocation
1 parent d065c8a commit f9aee54

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
- "**"
99
pull_request: {}
1010

11-
env:
12-
UV_PYTHON: 3.13
13-
UV_FROZEN: "1"
14-
1511
jobs:
1612
test-package:
1713
runs-on: ubuntu-latest
1814

15+
env:
16+
UV_PYTHON: 3.13
17+
UV_FROZEN: "1"
18+
1919
steps:
2020
- uses: actions/checkout@v4
2121

@@ -27,7 +27,7 @@ jobs:
2727
mkdir foobar
2828
echo "VERSION = '1.0a1'" > foobar/version.py
2929
30-
- run: uv run main.py
30+
- run: check-python-version.py
3131
env:
3232
# we can't use GITHUB_REF, so we use the backup var name
3333
INPUT_TEST_GITHUB_REF: refs/tags/v1.0.0a1
@@ -39,7 +39,7 @@ jobs:
3939
- run: grep -q 'VERSION=1.0a1' output1.txt
4040

4141
- run: echo "VERSION = '1.1.1'" > foobar/version.py
42-
- run: uv run main.py
42+
- run: check-python-version.py
4343
env:
4444
INPUT_SKIP_ENV_CHECK: true
4545
INPUT_VERSION_FILE_PATH: foobar/version.py

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Samuel Colvin
3+
Copyright (c) 2022 to present Samuel Colvin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ runs:
2727
with:
2828
enable-cache: true
2929
python-version: 3.13
30-
- run: uv run main.py
30+
31+
- run: check-python-version.py
3132
shell: bash
3233

3334
branding:

main.py renamed to check-python-version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env uv run
12
import os
23
import re
34
import sys

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)