From 6f1baa5e16adbeaba8b031298361c166126eba9c Mon Sep 17 00:00:00 2001 From: Robin Steuteville Date: Fri, 23 Feb 2024 13:55:25 -0700 Subject: [PATCH] checking if runs with run cargo tests uncommented --- .github/workflows/tests.yaml | 4 ++-- .github/workflows/wheels.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6e2b6aca..025410f1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -33,12 +33,12 @@ jobs: override: true - name: Rust unit tests - # if: ${{ github.repository == 'nrel/fastsim' && contains(github.event.pull_request.changed_files, 'rust/') }} + if: ${{ github.repository == 'nrel/fastsim' && contains(github.event.pull_request.changed_files, 'rust/') }} run: | cd rust/ && cargo test - name: Python unit tests - # if: ${{ github.repository == 'nrel/fastsim' && (contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/')) }} + if: ${{ github.repository == 'nrel/fastsim' && (contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/')) }} run: | pip install -e ".[dev]" && pytest -v python/fastsim/tests/ pytest -v python/fastsim/demos/ \ No newline at end of file diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml index f858e8ad..77d35532 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/wheels.yaml @@ -46,6 +46,7 @@ jobs: - run: rustup target add aarch64-apple-darwin if: matrix.os == 'macos' +# for some reason this make the tests run -- but altrios doesn't have this?? - name: run cargo tests uses: actions-rs/toolchain@v1 with: