Skip to content

Commit 73c5449

Browse files
committed
add e2e tests in taskfile and in CI
1 parent 605cb22 commit 73c5449

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Diff for: .github/workflows/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ jobs:
123123
run: task build
124124
if: matrix.os == 'macos-10.15'
125125

126+
- name: Install Python
127+
uses: actions/setup-python@v2
128+
with:
129+
python-version: '3.9'
130+
architecture: 'x64'
131+
132+
- name: Run e2e tests
133+
run: |
134+
pip install poetry
135+
task test-e2e
136+
126137
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
127138
- name: Create autoupdate files
128139
run: go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}

Diff for: .github/workflows/test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ jobs:
9191
run: task build
9292
if: matrix.os == 'macos-10.15'
9393

94+
- name: Install Python
95+
uses: actions/setup-python@v2
96+
with:
97+
python-version: '3.9'
98+
architecture: 'x64'
99+
100+
- name: Run e2e tests
101+
run: |
102+
pip install poetry
103+
task test-e2e
104+
94105
# config.ini is required by the executable when it's run
95106
- name: Upload artifacts
96107
uses: actions/upload-artifact@v2

Diff for: Taskfile.yml

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ tasks:
3333
cmds:
3434
- go test -short -run '{{ default ".*" .TEST_REGEX }}' {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
3535

36+
test-e2e:
37+
desc: Run end 2 end tests
38+
cmds:
39+
- poetry install --no-root
40+
- poetry run pytest test
41+
3642
check:
3743
desc: Check fmt and lint
3844
cmds:

0 commit comments

Comments
 (0)