forked from neonevm/neon-evm
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setup-build-action and setup-python
- Loading branch information
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,16 +67,17 @@ jobs: | |
runs-on: ["self-hosted", "k8s-prod"] | ||
needs: | ||
- build-image | ||
container: | ||
image: docker:dind | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: pip install -r ./.github/workflows/requirements.txt | ||
- name: Run tests | ||
run: | | ||
apk add python3 py3-pip && python3 -m venv /venv && . /venv/bin/activate && pip3 install -r ./.github/workflows/requirements.txt && \ | ||
/venv/bin/python3 ./.github/workflows/deploy.py run_tests \ | ||
python3 ./.github/workflows/deploy.py run_tests \ | ||
--evm_sha_tag=${{ needs.build-image.outputs.evm_sha_tag }} \ | ||
--neon_test_tag=${{ needs.build-image.outputs.neon_test_tag }} \ | ||
--run_number=${{ github.run_number }} \ | ||
|
@@ -88,16 +89,17 @@ jobs: | |
runs-on: ["self-hosted", "k8s-prod"] | ||
needs: | ||
- build-image | ||
container: | ||
image: docker:dind | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: pip install -r ./.github/workflows/requirements.txt | ||
- name: Trigger proxy build | ||
run: | | ||
apk add python3 py3-pip && python3 -m venv /venv && . /venv/bin/activate && pip3 install -r ./.github/workflows/requirements.txt && \ | ||
/venv/bin/python3 ./.github/workflows/deploy.py trigger_proxy_action \ | ||
python3 ./.github/workflows/deploy.py trigger_proxy_action \ | ||
--evm_pr_version_branch=${{ needs.build-image.outputs.evm_pr_version_branch }} \ | ||
--is_evm_release=${{ needs.build-image.outputs.is_evm_release }} \ | ||
--evm_sha_tag=${{ needs.build-image.outputs.evm_sha_tag }} \ | ||
|
@@ -111,27 +113,28 @@ jobs: | |
uses: "andymckay/[email protected]" | ||
finalize-image: | ||
runs-on: ["self-hosted", "k8s-prod"] | ||
container: | ||
image: docker:dind | ||
needs: | ||
- build-image | ||
- trigger-proxy-tests | ||
- run-evm-tests | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: pip install -r ./.github/workflows/requirements.txt | ||
- name: Finalize image | ||
run: | | ||
apk add python3 py3-pip && python3 -m venv /venv && . /venv/bin/activate && pip3 install -r ./.github/workflows/requirements.txt && \ | ||
/venv/bin/python3 ./.github/workflows/deploy.py finalize_image \ | ||
python3 ./.github/workflows/deploy.py finalize_image \ | ||
--evm_sha_tag=${{ needs.build-image.outputs.evm_sha_tag }} \ | ||
--evm_tag=${{ needs.build-image.outputs.evm_tag }} | ||
- name: Send notification to slack | ||
if: failure() | ||
run: | | ||
/venv/bin/python3 ./.github/workflows/deploy.py send_notification \ | ||
python3 ./.github/workflows/deploy.py send_notification \ | ||
--evm_tag=${{ needs.build-image.outputs.evm_tag }} \ | ||
--url=${{secrets.SLACK_EVM_CHANNEL_URL}} \ | ||
--build_url=${BUILD_URL} |