diff --git a/.github/workflows/py-tests.yaml b/.github/workflows/py-tests.yaml index 6d4c55f7..63d4aa5e 100644 --- a/.github/workflows/py-tests.yaml +++ b/.github/workflows/py-tests.yaml @@ -11,7 +11,7 @@ on: # - "python/**" # - "rust/**" workflow_dispatch: - workflow_call: + # workflow_call: jobs: # call-rust-tests: diff --git a/.github/workflows/rust-tests.yaml b/.github/workflows/rust-tests.yaml index 1944190c..efc0e498 100644 --- a/.github/workflows/rust-tests.yaml +++ b/.github/workflows/rust-tests.yaml @@ -1,55 +1,55 @@ -name: tests - -on: - push: - branches: [fastsim-2, fastsim-3] - # paths: - # - "rust/**" - pull_request: - # paths: - # - "rust/**" - workflow_dispatch: - workflow_call: - -jobs: - test: - # might not be needed - # if: github.repository == 'nrel/fastsim' - - 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/') - - name: install rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - - name: Rust unit tests - run: | - cd rust/ && cargo test - - # in altrios, also includes python tests here, not sure I - # understand what added benefit this gives - - - 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: tests + +# on: +# push: +# branches: [fastsim-2, fastsim-3] +# # paths: +# # - "rust/**" +# pull_request: +# # paths: +# # - "rust/**" +# workflow_dispatch: +# # workflow_call: + +# jobs: +# test: +# # might not be needed +# # if: github.repository == 'nrel/fastsim' + +# 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/') +# - name: install rust +# uses: actions-rs/toolchain@v1 +# with: +# profile: minimal +# toolchain: stable +# override: true + +# - name: Rust unit tests +# run: | +# cd rust/ && cargo test + +# # in altrios, also includes python tests here, not sure I +# # understand what added benefit this gives + +# - 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