-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.44 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test Action
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
test-action:
runs-on: ubuntu-latest
name: Test the action
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run the action
id: get-release-version
uses: ./.github/actions/local-action
with:
create-tag: "false"
- name: Print the outputs
run: |
echo "version=${{ steps.get-release-version.outputs.version }}"
echo "version-name=${{ steps.get-release-version.outputs.version-name }}"
echo "previous-version=${{ steps.get-release-version.outputs.previous-version }}"
echo "previous-version-name=${{ steps.get-release-version.outputs.previous-version-name }}"
echo "tag-created=${{ steps.get-release-version.outputs.tag-created }}"
run-tests:
runs-on: ubuntu-latest
name: Run E2E Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Run pytest
run: poetry run pytest --junit-xml test-result.xml tests/e2e
- name: Upload test results
if: always()
uses: pmeier/[email protected]
with:
path: test-result.xml
summary: true
display-options: fEX
fail-on-empty: true
title: E2E Test Results