diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5eacd89a..e85191d2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -6,25 +6,26 @@ on: pull_request: workflow_dispatch: -jobs: - test: - runs-on: ubuntu-latest - - strategy: - fail-fast: true - matrix: - python-version: ['3.8', '3.9', '3.10'] - - env: - PYTHON: ${{ matrix.python-version }} - steps: - - uses: actions/checkout@v3 - - - name: set up python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - if: contains(github.event.pull_request.changed_files, 'rust/') +if: github.repository == 'nrel/fastsim' + jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + python-version: ['3.8', '3.9', '3.10'] + + env: + PYTHON: ${{ matrix.python-version }} + steps: + - uses: actions/checkout@v3 + + - name: set up python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: install rust uses: actions-rs/toolchain@v1 with: @@ -36,7 +37,7 @@ jobs: run: | cd rust/ && cargo test - - name: Python unit tests - run: | - pip install -e ".[dev]" && pytest -v python/fastsim/tests/ - pytest -v python/fastsim/demos/ \ No newline at end of file + - name: Python unit tests + run: | + pip install -e ".[dev]" && pytest -v python/fastsim/tests/ + pytest -v python/fastsim/demos/ \ No newline at end of file