Skip to content

Commit

Permalink
Run only 10g
Browse files Browse the repository at this point in the history
  • Loading branch information
indraniBh committed Aug 7, 2024
1 parent 869e493 commit e712e36
Showing 1 changed file with 44 additions and 43 deletions.
87 changes: 44 additions & 43 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ on:
pull_request:

jobs:
test_novus_100g:
runs-on: [snappi-ixn-ci-novus100g]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
ref: ${{ env.BASE_BRANCH }}
# ref: ${{ github.head_ref }}
submodules: recursive
- name: Set python path
id: path
run: echo "::set-output name=pythonv::/home/github-runner/pyenv/.env/bin/python"
- name: Install dependencies
run: |
rm -rf .env
${{steps.path.outputs.pythonv}} do.py setup
${{steps.path.outputs.pythonv}} do.py init
- name: Build distribution
run: |
${{steps.path.outputs.pythonv}} do.py dist
- name: Install package on clean env
run: |
rm -rf .env
${{steps.path.outputs.pythonv}} do.py setup
${{steps.path.outputs.pythonv}} do.py install
${{steps.path.outputs.pythonv}} do.py init
- name: Run tests
run: |
TEST_USERNAME=${{secrets.TEST_USERNAME}} TEST_PASSWORD='${{secrets.TEST_PASSWORD}}' ${{steps.path.outputs.pythonv}} do.py test
# test_novus_100g:
# runs-on: [snappi-ixn-ci-novus100g]
# steps:
# - name: Checkout source
# uses: actions/checkout@v2
# with:
# ref: ${{ env.BASE_BRANCH }}
# # ref: ${{ github.head_ref }}
# submodules: recursive
# - name: Set python path
# id: path
# run: echo "::set-output name=pythonv::/home/github-runner/pyenv/.env/bin/python"
# - name: Install dependencies
# run: |
# rm -rf .env
# ${{steps.path.outputs.pythonv}} do.py setup
# ${{steps.path.outputs.pythonv}} do.py init
# - name: Build distribution
# run: |
# ${{steps.path.outputs.pythonv}} do.py dist
# - name: Install package on clean env
# run: |
# rm -rf .env
# ${{steps.path.outputs.pythonv}} do.py setup
# ${{steps.path.outputs.pythonv}} do.py install
# ${{steps.path.outputs.pythonv}} do.py init
# - name: Run tests
# run: |
# TEST_USERNAME=${{secrets.TEST_USERNAME}} TEST_PASSWORD='${{secrets.TEST_PASSWORD}}' ${{steps.path.outputs.pythonv}} do.py test

test_novus_10g:
runs-on: [snappi-ixn-ci-novus10g]
Expand Down Expand Up @@ -68,7 +68,8 @@ jobs:
publish_artifacts:
runs-on: [snappi-ixn-ci-novus100g]
needs: [test_novus_100g, test_novus_10g]
needs: [test_novus_10g]
# needs: [test_novus_100g, test_novus_10g]
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand Down Expand Up @@ -122,16 +123,16 @@ jobs:
${{steps.path.outputs.pythonv}} do.py install_requests ${{steps.path.outputs.pythonv}}
${{steps.path.outputs.pythonv}} do.py check_release_flag ${{ steps.release.outputs.release_flag }} ${{ steps.get_version.outputs.version }}
cicd_snappitest:
runs-on: [snappi-ixn-ci-novus100g]
needs: test_novus_100g
steps:
- name: Trigger CI/CD snappi-tests
run: |
git clone https://github.com/open-traffic-generator/snappi-tests.git
mv version.txt snappi-tests
cd snappi-tests
git add version.txt
git commit --allow-empty -m "Trigger Snappi test from snappi-ixnetwork"
git remote set-url origin https://${{secrets.CI_TOKEN}}@github.com/open-traffic-generator/snappi-tests.git
git push origin main
# cicd_snappitest:
# runs-on: [snappi-ixn-ci-novus100g]
# needs: test_novus_100g
# steps:
# - name: Trigger CI/CD snappi-tests
# run: |
# git clone https://github.com/open-traffic-generator/snappi-tests.git
# mv version.txt snappi-tests
# cd snappi-tests
# git add version.txt
# git commit --allow-empty -m "Trigger Snappi test from snappi-ixnetwork"
# git remote set-url origin https://${{secrets.CI_TOKEN}}@github.com/open-traffic-generator/snappi-tests.git
# git push origin main

0 comments on commit e712e36

Please sign in to comment.