Skip to content

Improvement: Change review_requested trigger to issue_comment trigger for full test suite #1357

Improvement: Change review_requested trigger to issue_comment trigger for full test suite

Improvement: Change review_requested trigger to issue_comment trigger for full test suite #1357

Workflow file for this run

name: Pytest
on:
pull_request:
types:
- opened
- reopened
- synchronize
issue_comment:
types: [created]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
platform: ['ubuntu-latest']
jit_status: ['jit_disabled']
if: ${{ !github.event.pull_request.draft && (github.event_name != "issue_comment" || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))}}

Check failure on line 28 in .github/workflows/reduced_pytest.yml

View workflow run for this annotation

GitHub Actions / Pytest

Invalid workflow file

The workflow is not valid. .github/workflows/reduced_pytest.yml (Line: 28, Col: 9): Unexpected symbol: '"issue_comment"'. Located at position 59 within expression: !github.event.pull_request.draft && (github.event_name != "issue_comment" || (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/run-tests')))
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install Nox dependencies
shell: bash
run: pip install -r requirements/requirements-nox.txt
- name: Install update
shell: bash
run: sudo apt-get update
if: startsWith(runner.os, 'Linux') == true
- name: Install libsndfile and libgomp1 on Ubuntu
shell: bash
run: sudo apt-get install -y libsndfile-dev libgomp1
if: startsWith(runner.os, 'Linux') == true
- name: Install libomp on macOS
shell: bash
run: brew install libomp
if: startsWith(runner.os, 'macOS') == true
- name: Run Nox session for brevitas pytest
shell: bash
run: nox -v -s tests_brevitas_cpu-${{ matrix.python_version }}\(${{ matrix.jit_status }}\,\ pytorch_${{ matrix.pytorch_version }}\)