File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -171,3 +171,35 @@ jobs:
171171 codecov --flags python-filler-${{ matrix.python-version }}
172172 env :
173173 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
174+
175+ # ------------------------------------------ Integration Tests ------------------------------------------
176+ integration-tests :
177+ if : |
178+ always() && !cancelled() &&
179+ !contains(needs.*.result, 'failure') &&
180+ !contains(needs.*.result, 'cancelled') &&
181+ needs.files-changed.outputs.python == 'true'
182+ needs : ["files-changed", "yaml-lint", "python-lint"]
183+ runs-on : ubuntu-latest
184+ timeout-minutes : 30
185+ steps :
186+ - name : " Check out repository code"
187+ uses : " actions/checkout@v4"
188+ - name : Set up Python
189+ uses : actions/setup-python@v5
190+ with :
191+ python-version : " 3.12"
192+ - name : " Setup environment"
193+ run : |
194+ pipx install poetry
195+ poetry config virtualenvs.prefer-active-python true
196+ pip install invoke toml codecov
197+ - name : " Install Package"
198+ run : " poetry install --all-extras"
199+ - name : " Integration Tests"
200+ run : " poetry run pytest tests/integration/test_node.py -v"
201+ - name : " Upload coverage to Codecov"
202+ run : |
203+ codecov --flags integration-tests
204+ env :
205+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments