[#55] Fix das-node pipeline and create pipeline for python and c++ tests #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Run DAS Node tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
workflow_dispatch: | |
jobs: | |
build-bazel: | |
runs-on: ubuntu-22.04 | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Build docker image | |
run: make cpp-image | |
- name: Login to DockerHub | |
if: success() | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push image to repository | |
run: |- | |
docker tag das-node-builder:latest ghcr.io/das-node-builder:${{ github.sha }} | |
docker push ghcr.io/das-node-builder:${{ github.sha }} | |
cpp-tests: | |
runs-on: ubuntu-22.04 | |
needs: build-bazel | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
if: success() | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Pull docker image from registry | |
run: |- | |
docker pull ghcr.io/das-node-builder:${{ github.sha }} | |
docker tag ghcr.io/das-node-builder:${{ github.sha }} das-node-builder:latest | |
- name: Run cpp tests | |
run: make cpp-test | |
wheel-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
if: success() | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Pull docker image from registry | |
run: |- | |
docker pull ghcr.io/das-node-builder:${{ github.sha }} | |
docker tag ghcr.io/das-node-builder:${{ github.sha }} das-node-builder:latest | |
- name: Run python tests | |
run: make wheeler-test |