2222 CACHED_BUILD_PATHS : |
2323 ${{ github.workspace }}/dist-serverless
2424jobs :
25- test-flags-latest :
26- name : Flags (latest)
27- timeout-minutes : 30
28- runs-on : ${{ matrix.os }}
29- strategy :
30- fail-fast : false
31- matrix :
32- python-version : ["3.8","3.12","3.13"]
33- # python3.6 reached EOL and is no longer being supported on
34- # new versions of hosted runners on Github Actions
35- # ubuntu-20.04 is the last version that supported python3.6
36- # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37- os : [ubuntu-20.04]
38- steps :
39- 40- - uses : actions/setup-python@v5
41- with :
42- python-version : ${{ matrix.python-version }}
43- allow-prereleases : true
44- - name : Setup Test Env
45- run : |
46- pip install "coverage[toml]" tox
47- - name : Erase coverage
48- run : |
49- coverage erase
50- - name : Test launchdarkly latest
51- run : |
52- set -x # print commands that are executed
53- ./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly-latest"
54- - name : Test openfeature latest
55- run : |
56- set -x # print commands that are executed
57- ./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature-latest"
58- - name : Test unleash latest
59- run : |
60- set -x # print commands that are executed
61- ./scripts/runtox.sh "py${{ matrix.python-version }}-unleash-latest"
62- - name : Generate coverage XML (Python 3.6)
63- if : ${{ !cancelled() && matrix.python-version == '3.6' }}
64- run : |
65- export COVERAGE_RCFILE=.coveragerc36
66- coverage combine .coverage-sentry-*
67- coverage xml --ignore-errors
68- - name : Generate coverage XML
69- if : ${{ !cancelled() && matrix.python-version != '3.6' }}
70- run : |
71- coverage combine .coverage-sentry-*
72- coverage xml
73- - name : Upload coverage to Codecov
74- if : ${{ !cancelled() }}
75- 76- with :
77- token : ${{ secrets.CODECOV_TOKEN }}
78- files : coverage.xml
79- # make sure no plugins alter our coverage reports
80- plugin : noop
81- verbose : true
82- - name : Upload test results to Codecov
83- if : ${{ !cancelled() }}
84- uses : codecov/test-results-action@v1
85- with :
86- token : ${{ secrets.CODECOV_TOKEN }}
87- files : .junitxml
88- verbose : true
8925 test-flags-pinned :
9026 name : Flags (pinned)
9127 timeout-minutes : 30
9228 runs-on : ${{ matrix.os }}
9329 strategy :
9430 fail-fast : false
9531 matrix :
96- python-version : ["3.8 ","3.12","3.13"]
32+ python-version : ["3.7","3.8","3.9 ","3.12","3.13"]
9733 # python3.6 reached EOL and is no longer being supported on
9834 # new versions of hosted runners on Github Actions
9935 # ubuntu-20.04 is the last version that supported python3.6
@@ -119,6 +55,10 @@ jobs:
11955 run : |
12056 set -x # print commands that are executed
12157 ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openfeature"
58+ - name : Test statsig pinned
59+ run : |
60+ set -x # print commands that are executed
61+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-statsig"
12262 - name : Test unleash pinned
12363 run : |
12464 set -x # print commands that are executed
13676 coverage xml
13777 - name : Upload coverage to Codecov
13878 if : ${{ !cancelled() }}
139- uses : codecov/codecov-action@v5.1.2
79+ uses : codecov/codecov-action@v5.3.1
14080 with :
14181 token : ${{ secrets.CODECOV_TOKEN }}
14282 files : coverage.xml
0 commit comments