File tree 5 files changed +42
-26
lines changed
5 files changed +42
-26
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ concurrency:
12
12
cancel-in-progress : true
13
13
14
14
jobs :
15
- changes :
16
- runs-on : ubuntu-latest
17
- permissions :
18
- pull-requests : read
19
- outputs :
20
- python : ${{ steps.filter.outputs.python }}
21
- steps :
22
- - uses : dorny/paths-filter@v3
23
- id : filter
24
- with :
25
- filters : |
26
- python:
27
- - '**/*.py'
28
- - 'pyproject.toml'
15
+ # changes:
16
+ # runs-on: ubuntu-latest
17
+ # permissions:
18
+ # pull-requests: read
19
+ # outputs:
20
+ # python: ${{ steps.filter.outputs.python }}
21
+ # steps:
22
+ # - uses: dorny/paths-filter@v3
23
+ # id: filter
24
+ # with:
25
+ # filters: |
26
+ # python:
27
+ # - '**/*.py'
28
+ # - 'pyproject.toml'
29
29
30
30
test-python :
31
31
runs-on : ${{ matrix.os }}
@@ -34,25 +34,27 @@ jobs:
34
34
fail-fast : false
35
35
matrix :
36
36
py : ['3.11', '3.12']
37
- os : [ubuntu-latest, macos-latest, windows-latest]
37
+ # not today, windows-latest
38
+ os : [ubuntu-latest, macos-latest]
38
39
39
- needs : changes
40
- if : needs.changes.outputs.python == 'true'
40
+ # needs: changes
41
+ # if: needs.changes.outputs.python == 'true'
41
42
steps :
42
43
- uses : actions/checkout@v4
43
- - uses : eifinger/setup-rye@v3
44
+ - uses : eifinger/setup-rye@v4 # replaces setup-python
44
45
id : setup-rye
45
46
with :
46
- version : ' 0.34 .0'
47
+ version : ' 0.39 .0'
47
48
- run : rye pin ${{ matrix.py }}
48
49
- name : Sync
50
+ shell : pwsh
49
51
run : |
50
52
rye sync
51
- if [[ $ (git diff --stat requirements.lock) != '' ]]; then
52
- echo 'Rye lockfile not up-to-date'
53
+ if (git diff --stat requirements.lock) {
54
+ Write-Output 'Rye lockfile not up-to-date'
53
55
git diff requirements.lock
54
56
exit 1
55
- fi
57
+ }
56
58
- run : rye fmt --check
57
59
- run : rye lint
58
60
- run : rye run check
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ build-backend = "pdm.backend"
25
25
26
26
[tool .rye ]
27
27
managed = true
28
+
29
+ # switch to true to generate cross-platform lockfiles when we support Windows
30
+ # which we don't
31
+ universal = false
32
+
28
33
dev-dependencies = [
29
34
" pyright>=1.1.377" ,
30
35
" pytest>=8.3.2" ,
Original file line number Diff line number Diff line change 7
7
# all-features: false
8
8
# with-sources: false
9
9
# generate-hashes: false
10
- # universal: false
10
+ # universal: true
11
11
12
12
-e file:.
13
13
click==8.1.7
14
14
# via jsi
15
+ colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
16
+ # via click
17
+ # via loguru
18
+ # via pytest
15
19
humanize==4.10.0
16
20
# via jsi
17
21
iniconfig==2.0.0
@@ -37,3 +41,5 @@ pyright==1.1.378
37
41
pytest==8.3.2
38
42
rich==13.8.1
39
43
# via jsi
44
+ win32-setctime==1.1.0 ; sys_platform == 'win32'
45
+ # via loguru
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ psutil==6.0.0
26
26
# via jsi
27
27
pygments==2.18.0
28
28
# via rich
29
- pyright==1.1.378
29
+ pyright==1.1.382.post0
30
30
# via jsi
31
31
rich==13.8.1
32
32
# via jsi
33
+ typing-extensions==4.12.2
34
+ # via pyright
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def test_cmd_options():
81
81
stderr = "boop" ,
82
82
)
83
83
command .start ()
84
- stdout , stderr = command .communicate (timeout = 0.1 )
84
+ stdout , stderr = command .communicate (timeout = 0.2 )
85
85
86
86
print (f"{ stdout = } " )
87
87
print (f"{ stderr = } " )
@@ -165,7 +165,8 @@ def test_delayed_start_real_time():
165
165
assert not command .started ()
166
166
assert not command .done ()
167
167
168
- time .sleep (0.2 )
168
+ # give it some time to complete (allow some wiggle room for slow CI)
169
+ time .sleep (0.4 )
169
170
assert command .started ()
170
171
assert command .done ()
171
172
assert command .returncode == 0
You can’t perform that action at this time.
0 commit comments