Skip to content

add integration tests to the run-tests Github action #27

add integration tests to the run-tests Github action

add integration tests to the run-tests Github action #27

Workflow file for this run

---
name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Extract dependent Pull Requests
uses: depends-on/depends-on-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run pre-commit checks
run: |
set -ex
curl -sSL https://install.python-poetry.org | python3 -
poetry install --with test
poetry run pip3 install torch
poetry run pre-commit run -a --show-diff-on-failure
- name: Run integration tests
run: |
set -ex
./integration-test.sh
check-all-dependencies-are-merged:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Check all dependent Pull Requests are merged
uses: depends-on/depends-on-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
check-unmerged-pr: true
...