Skip to content

Commit 3070973

Browse files
authored
Jobs to build and test nca package (#428)
1 parent 4428eae commit 3070973

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test-push.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,33 @@ jobs:
150150
- run: |
151151
export PYTHONPATH=.
152152
python tests/run_all_tests.py --type=k8s_live_general
153+
build_package:
154+
runs-on: ubuntu-latest
155+
steps:
156+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
157+
- uses: ./.github/actions/setup-nca-env
158+
- name: Build package
159+
run: |
160+
pip install build
161+
python -m build
162+
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
163+
with:
164+
name: nca-package
165+
path: dist/*
166+
test_package:
167+
runs-on: ubuntu-latest
168+
needs: build_package
169+
steps:
170+
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
171+
with:
172+
python-version: 3.8
173+
architecture: x64
174+
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
175+
with:
176+
name: nca-package
177+
path: nca_build
178+
- run: |
179+
pip install nca_build/network-config-analyzer-*.tar.gz
180+
nca --connectivity -r https://github.com/IBM/network-config-analyzer/blob/master/tests/livesim_tests/livesim_topology.yaml
181+
env:
182+
GHE_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)