Integration Tests #5400
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: Integration Tests | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '.buildkite/**' | |
- '.dependabot/**' | |
- 'docs/**' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '.buildkite/**' | |
- '.dependabot/**' | |
- 'docs/**' | |
schedule: | |
- cron: '0 11 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Build Docker Image | |
run: docker build . -t testing | |
- name: Run Integration Tests | |
run: | | |
docker run --name test --rm -it -d testing bash | |
docker exec test pip freeze | |
docker exec test bash -c "source /aha/bin/activate && aha garnet --width 4 --height 2 --verilog --use_sim_sram" | |
docker exec test test -e /aha/garnet/garnet.v | |
- name: Notify Owners on Failure | |
if: github.event_name == 'pull_request' && failure() | |
uses: actions/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
if (!context.payload.sender.login.includes("dependabot")) { | |
return | |
} | |
const updated_repo = context.payload.pull_request.title.match(/Bump ([^\s]+)/)[1] | |
const result = await github.repos.getContents({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
path: "OWNERS.json" | |
}) | |
const owners = JSON.parse(Buffer.from(result.data.content, result.data.encoding)) | |
await github.issues.addAssignees({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
assignees: owners[updated_repo] | |
}) |