File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,22 @@ jobs:
22
22
- ' 3.13'
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+ - uses : actions/setup-java@v4
26
+ with :
27
+ distribution : temurin
28
+ java-version : ' 21'
25
29
- name : Install poetry
26
30
run : pipx install poetry
27
31
- uses : actions/setup-python@v5
28
32
with :
29
33
python-version : ${{ matrix.python-version }}
30
34
cache : poetry
31
35
- name : Setup
36
+ shell : bash
32
37
run : |
33
38
poetry install --no-interaction
34
- poetry run task download-latest-jar
39
+ export DOWNLOAD_LATEST_ONLY=1
40
+ poetry run task publish
35
41
- name : Test
36
42
run : |
37
43
poetry run task test
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ import os
3
4
import re
4
5
from typing import TYPE_CHECKING
5
6
@@ -14,7 +15,7 @@ def test_cli_version(capfd: pytest.CaptureFixture[str]) -> None:
14
15
assert result .returncode == 0
15
16
16
17
captured = capfd .readouterr ()
17
- assert re .match (r"^\d+\.\d+\.\d+(?:-beta\d*)?$" , captured .out .split (" \n " )[0 ])
18
+ assert re .match (r"^\d+\.\d+\.\d+(?:-beta\d*)?$" , captured .out .split (os . linesep )[0 ])
18
19
assert not captured .err
19
20
20
21
@@ -40,4 +41,4 @@ def test_invalid_arg(capfd: pytest.CaptureFixture[str]) -> None:
40
41
41
42
captured = capfd .readouterr ()
42
43
assert not captured .out
43
- assert "Found unexpected parameters: [--invalid-arg-404]" in captured .err .split (" \n " )[0 ]
44
+ assert "Found unexpected parameters: [--invalid-arg-404]" in captured .err .split (os . linesep )[0 ]
You can’t perform that action at this time.
0 commit comments