-
Notifications
You must be signed in to change notification settings - Fork 5
73 lines (63 loc) · 1.82 KB
/
functional_tests.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
65
66
67
68
69
70
71
72
73
name: Functional tests
on:
# Check for updates every day
schedule:
- cron: "0 0 * * *"
# Check on any PR
pull_request:
branches: "*"
push:
branches: [master]
paths:
- "nuxeo/**/*.py"
- "setup.*"
- "tests/functional/*.py"
jobs:
functional-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
nuxeo:
- "2021"
- "2023.0.159"
python:
# Maximum supported version
# Note: 3.10 is still in alpha, so we stick with 3.9 until there is an official 3.10
- "3.9"
services:
nuxeo:
image: docker-private.packages.nuxeo.com/nuxeo/nuxeo:${{ matrix.nuxeo }}
credentials:
username: ${{ secrets.NUXEO_DOCKER_USER }}
password: ${{ secrets.NUXEO_DOCKER_PWD }}
env:
NUXEO_CLID: ${{ secrets.NUXEO_CLID }}
ports:
- 8080:8080
# Set health checks to wait for hotfixes installation
options: >-
--health-cmd "curl -f -s http://localhost:8080/nuxeo/runningstatus"
--health-interval 10s
--health-timeout 5s
--health-retries 60
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: python -m pip install -U pip tox
- name: Functional tests
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
# Run tox using the version of Python in `PATH`
run: python -m tox -e functional
- name: Upload coverage to Codecov
if: ${{ success() }} || ${{ failure() }}
uses: codecov/codecov-action@v3.1.2
with:
files: ./coverage.xml
flags: functional
env_vars: PYTHON