-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seeing if if github.repo works in tests.yaml
- Loading branch information
1 parent
b9103b4
commit 8e0dc5f
Showing
4 changed files
with
116 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: py-tests | ||
# name: py-tests | ||
|
||
on: | ||
push: | ||
branches: [fastsim-2, fastsim-3] | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
# on: | ||
# push: | ||
# branches: [fastsim-2, fastsim-3] | ||
# pull_request: | ||
# workflow_dispatch: | ||
# workflow_call: | ||
|
||
jobs: | ||
test: | ||
# might not be needed | ||
# if: github.repository == 'nrel/fastsim' | ||
# jobs: | ||
# test: | ||
# # might not be needed | ||
# # if: github.repository == 'nrel/fastsim' | ||
|
||
runs-on: ubuntu-latest | ||
# runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10'] | ||
# strategy: | ||
# fail-fast: true | ||
# matrix: | ||
# python-version: ['3.8', '3.9', '3.10'] | ||
|
||
# if: contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/') | ||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# # if: contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/') | ||
# 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: set up python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
|
||
- name: Python unit tests | ||
run: | | ||
pip install -e ".[dev]" && pytest -v python/fastsim/tests/ | ||
pytest -v python/fastsim/demos/ | ||
# - name: Python unit tests | ||
# run: | | ||
# pip install -e ".[dev]" && pytest -v python/fastsim/tests/ | ||
# pytest -v python/fastsim/demos/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: rust-tests | ||
|
||
on: | ||
push: | ||
branches: [fastsim-2, fastsim-3] | ||
pull_request: | ||
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 | ||
# name: rust-tests | ||
|
||
# on: | ||
# push: | ||
# branches: [fastsim-2, fastsim-3] | ||
# pull_request: | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
# name: tests | ||
|
||
# on: | ||
# push: | ||
# branches: [fastsim-2, fastsim-3] | ||
# 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 }} | ||
|
||
# - name: install rust | ||
# uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: stable | ||
# override: true | ||
|
||
# - name: Rust unit tests | ||
# run: | | ||
# cd rust/ && cargo test | ||
|
||
# - name: Python unit tests | ||
# run: | | ||
# pip install -e ".[dev]" && pytest -v python/fastsim/tests/ | ||
# pytest -v python/fastsim/demos/ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [fastsim-2, fastsim-3] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
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 }} | ||
|
||
- name: install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Rust unit tests | ||
run: | | ||
cd rust/ && cargo test | ||
- name: Python unit tests | ||
run: | | ||
pip install -e ".[dev]" && pytest -v python/fastsim/tests/ | ||
pytest -v python/fastsim/demos/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters