-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.52 KB
/
integration-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
61
62
63
64
name: Integration Tests
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
secrets:
DEK_EDL_USER:
required: true
DEK_EDL_PASSWORD:
required: true
codecov_token:
required: true
push:
branches:
- main
- develop
- release/**
- feature/**
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: integration-tests-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.3.2"
PYTHON_VERSION: "3.10"
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Retrieve repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v3.0.1
with:
poetry-version: ${{ env.POETRY_VERSION }}
- name: Install package
run: poetry install --with=integration --without harmony
- name: Test
env:
EDL_USER: ${{ secrets.DEK_EDL_USER }}
EDL_PASSWORD: ${{ secrets.DEK_EDL_PASSWORD }}
run: |
scripts/create-netrc
poetry run pytest --cov=concatenator --cov-report=xml tests/integration
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
flags: integration