Skip to content

Commit

Permalink
Updated github workflows to run New_ATS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-ni committed Jul 24, 2023
1 parent 4e8c709 commit e6fcf8f
Showing 1 changed file with 44 additions and 45 deletions.
89 changes: 44 additions & 45 deletions .github/workflows/build_release_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,57 @@ jobs:
name: Download and Build artifacts
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- uses: actions/download-artifact@v3
id: download_artifacts
with:
path: ${{ runner.temp }}\grpc-labview-artifacts
- uses: actions/download-artifact@v3
id: download_artifacts
with:
path: ${{ runner.temp }}\grpc-labview-artifacts

- name: Stage Artifacts
run:
python ${{runner.workspace}}\grpc-labview\build-it\stage_artifacts.py --downloaded_path ${{ steps.download_artifacts.outputs.download-path }} --staging_path ${{ runner.temp }}\grpc-labview-staged-artifacts

- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
name: Build VI Packages for Testing
run:
python ${{runner.workspace}}\grpc-labview\build-it\build.py --target All --pathToBinaries ${{ runner.temp }}\grpc-labview-staged-artifacts\TopLevelDlls
- name: Stage Artifacts
run: python ${{runner.workspace}}\grpc-labview\build-it\stage_artifacts.py --downloaded_path ${{ steps.download_artifacts.outputs.download-path }} --staging_path ${{ runner.temp }}\grpc-labview-staged-artifacts

- if: startsWith(github.ref, 'refs/tags/v')
name: Build VI Packages for release
run:
python ${{runner.workspace}}\grpc-labview\build-it\build.py --libraryVersion ${{github.ref_name}} --target All --pathToBinaries ${{ runner.temp }}\grpc-labview-staged-artifacts\TopLevelDlls
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
name: Build VI Packages for Testing
run: python ${{runner.workspace}}\grpc-labview\build-it\build.py --target All --pathToBinaries ${{ runner.temp }}\grpc-labview-staged-artifacts\TopLevelDlls

- if: startsWith(github.ref, 'refs/tags/v')
name: Zip Release Artifacts
run: |
cd "${{runner.workspace}}/grpc-labview/labview source/Builds"
tar -cavf grpc-labview.zip *.vip
- if: startsWith(github.ref, 'refs/tags/v')
name: Build VI Packages for release
run: python ${{runner.workspace}}\grpc-labview\build-it\build.py --libraryVersion ${{github.ref_name}} --target All --pathToBinaries ${{ runner.temp }}\grpc-labview-staged-artifacts\TopLevelDlls

- name: Run CI Tests
run:
python ${{runner.workspace}}\grpc-labview\tests\run_tests.py

- if: startsWith(github.ref, 'refs/tags/v')
name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Verison ${{ github.ref }}
draft: true
- if: startsWith(github.ref, 'refs/tags/v')
name: Zip Release Artifacts
run: |
cd "${{runner.workspace}}/grpc-labview/labview source/Builds"
tar -cavf grpc-labview.zip *.vip
- if: startsWith(github.ref, 'refs/tags/v')
name: Upload Release Artifacts to Draft Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- name: Run CI Tests
run: python ${{runner.workspace}}\grpc-labview\tests\run_tests.py

- name: Run New Testing Suite's Tests
run: python ${{runner.workspace}}\grpc-labview\tests\New_ATS\pylib\run_tests.py

- if: startsWith(github.ref, 'refs/tags/v')
name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Verison ${{ github.ref }}
draft: true

- if: startsWith(github.ref, 'refs/tags/v')
name: Upload Release Artifacts to Draft Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{runner.workspace}}/grpc-labview/labview source/Builds/grpc-labview.zip
asset_name: grpc-labview.zip
Expand Down

0 comments on commit e6fcf8f

Please sign in to comment.