Skip to content

Commit a557628

Browse files
committed
run e2e tests only with cli version on ubuntu (no GUI support on runners)
1 parent 22f7090 commit a557628

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,13 @@ jobs:
128128
with:
129129
python-version: '3.9'
130130
architecture: 'x64'
131+
if: matrix.os == 'ubuntu-18.04'
131132

132133
- name: Run e2e tests
133134
run: |
134135
pip install poetry
135136
task test-e2e
137+
if: matrix.os == 'ubuntu-18.04'
136138

137139
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
138140
- name: Create autoupdate files

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ jobs:
9696
with:
9797
python-version: '3.9'
9898
architecture: 'x64'
99+
if: matrix.os == 'ubuntu-18.04'
99100

100101
- name: Run e2e tests
101102
run: |
102103
pip install poetry
103104
task test-e2e
105+
if: matrix.os == 'ubuntu-18.04'
104106

105107
# config.ini is required by the executable when it's run
106108
- name: Upload artifacts

test/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,19 @@
1212
@pytest.fixture(scope="function")
1313
def agent(pytestconfig):
1414

15-
cli_full_line = str(Path(pytestconfig.rootdir) / "arduino-create-agent")
15+
agent_cli = str(Path(pytestconfig.rootdir) / "arduino-create-agent_cli")
1616
env = {
1717
# "ARDUINO_DATA_DIR": data_dir,
1818
# "ARDUINO_DOWNLOADS_DIR": downloads_dir,
1919
# "ARDUINO_SKETCHBOOK_DIR": data_dir,
2020
}
2121
run_context = Context()
2222

23-
# TODO: wtf is this?
24-
runner = Local(run_context)
23+
runner = Local(run_context) # execute a command on the local filesystem
2524

2625
cd_command = "cd"
2726
with run_context.prefix(f'{cd_command} ..'):
28-
runner.run(cli_full_line, echo=True, hide=True, warn=True, env=env, asynchronous=True)
27+
runner.run(command=agent_cli, echo=True, hide=True, warn=True, env=env, asynchronous=True)
2928

3029
# we give some time to the agent to start and listen to
3130
# incoming requests

0 commit comments

Comments
 (0)