Skip to content

Commit 80d5a22

Browse files
committed
adding integration tests
1 parent f99a19e commit 80d5a22

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)