Skip to content

Go fast Fix

Go fast Fix #693

Workflow file for this run

name: Unstable Tests
on:
pull_request_target:
branches:
- main
types:
- opened
- synchronize
paths:
- '**.py'
- '**.json'
- 'tox.ini'
- '.github/workflows/maintests.yml'
- '.github/workflows/prtests.yml'
- '.github/workflows/release.yml'
- '.pre-commit-config.yaml'
- 'bridgeData_template.yaml'
- 'requirements.txt'
- 'requirements.dev.txt'
- 'requirements.docs.txt'
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run pre-commit
uses: pre-commit/[email protected]
with:
extra_args: --all-files
dockerfile-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint CUDA Dockerfile
uses: hadolint/hadolint-action@master
with:
dockerfile: "Dockerfiles/Dockerfile.cuda"
- name: Lint RoCM Dockerfile
uses: hadolint/hadolint-action@master
with:
dockerfile: "Dockerfiles/Dockerfile.rocm"
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.dev.txt
- name: Run unit tests
run: tox -e tests-no-api-calls