-
Notifications
You must be signed in to change notification settings - Fork 36
60 lines (48 loc) · 1.36 KB
/
test.yml
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
54
55
56
57
58
59
60
name: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
license:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- run: make license
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- run: make docker-lint
coverage:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9' # As defined in tests/scripts/docker/run_tests.sh
cache: 'pip' # caching pip dependencies
- run: make all-requirements
- run: make coverage
env:
# See https://github.com/elastic/elastic-serverless-forwarder/pull/280#issuecomment-1461554126
AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: AWS_SECRET_ACCESS_KEY
PYTEST_JUNIT: "--junitxml=./elastic-serverless-forwarder-junit.xml"
- name: Store test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
**/elastic-serverless-forwarder-junit.xml
**/coverage.xml