-
Notifications
You must be signed in to change notification settings - Fork 144
Test GitHub Actions #2380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Test GitHub Actions #2380
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
16265f6
add github action for linux
wangcj05 996a49c
fix syntax issue
wangcj05 6f2b6d2
add github action test machie macos and windows
wangcj05 0327122
fix a couple of errors, and add numba which is required by statsforec…
wangcj05 3fe912e
fix one more error
wangcj05 d844acd
pin the version for numba and remove always in github action since it…
wangcj05 def121d
downgrade ubuntu to 22 and revert numba
wangcj05 1657f79
swith statsforecast from conda to pip
wangcj05 8f68265
update tests for SyntheticHistory
wangcj05 7a3531e
pin statsforecast to 1.7
wangcj05 c45e1da
unpin scipy
wangcj05 0540f5d
pin scipy to 1.9.1
wangcj05 12dd82e
update mac
wangcj05 6d6867e
revert changes for gold file in Basic TSA test
wangcj05 555982b
revert changes for scipy
wangcj05 0f5dca2
Merge branch 'devel' into wangc/github_actions
wangcj05 8bd2dd6
Merge branch 'devel' into wangc/github_actions
wangcj05 6c4395c
Merge branch 'wangc/github_actions' of github.com:idaholab/raven into…
wangcj05 c2bcdf9
testing conda to install statsforecast
wangcj05 36d8a53
Merge branch 'devel' into wangc/github_actions
wangcj05 bb4fdbb
Merge branch 'devel' into wangc/github_actions
wangcj05 76b5454
use pip to install statsforecast instead of conda
wangcj05 a8187f7
update gitattribute
wangcj05 6533e6f
ignore hpp for github language detection
wangcj05 ade13f6
Merge branch 'devel' into wangc/github_actions
wangcj05 ad0472e
update dependencies
wangcj05 5e06217
Merge branch 'devel' into wangc/github_actions
wangcj05 a1d6026
update scipy
wangcj05 0046247
update conda check
wangcj05 41da381
add conda path in Git Action machine
wangcj05 c209ee3
fix syntax error
wangcj05 97b47d3
add print for python path
wangcj05 4a100a6
for some reason, read_ravenrc is not workingx
wangcj05 64ee0c9
fix syntax error
wangcj05 c38cf6f
add python command
wangcj05 75bb366
Merge branch 'devel' into wangc/github_actions
wangcj05 76ae0fd
revert change in establish_conda_env.sh
wangcj05 a70f1bb
resolve type error in Linux
wangcj05 e1c41f5
update conda path in github action Windows machine
wangcj05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| name: GitHub RAVEN test | ||
| run-name: ${{ github.actor }} is testing out RAVEN | ||
| on: [push, pull_request] | ||
|
|
||
| concurrency: | ||
| # Here the group is defined by the head_ref of the PR | ||
| group: ${{ github.head_ref }} | ||
| # Here we specify that we'll cancel any "in progress" workflow of the same group. Thus if we push, ammend a commit and push | ||
| # again the previous workflow will be cancelled, thus saving us github action build minutes and avoid any conflicts | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| Test-RAVEN-Linux: | ||
| runs-on: ubuntu-latest | ||
| # runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Setup Conda | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| miniconda-version: "latest" | ||
| channels: conda-forge, defaults | ||
| activate-environment: raven_libraries | ||
| use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
| auto-update-conda: true | ||
| auto-activate-base: true | ||
|
|
||
| - name: Job Information | ||
| run: | | ||
| echo " The job was automatically triggered by a ${{ github.event_name }} event." | ||
| echo " This job is now running on a ${{ runner.os }} server" | ||
| echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
|
||
| - name: Fetch and Branch | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Plugins | ||
| run: | | ||
| pwd | ||
| python3 ./scripts/install_plugins.py -a | ||
|
|
||
| - name: Set Python Environment and Build Raven | ||
| run: | | ||
| ./scripts/establish_conda_env.sh --install | ||
| ./build_raven | ||
|
|
||
| - name: Test RAVEN | ||
| # if: always() | ||
| # continue-on-error: true # numba library cause autoarma failed for latest ubuntu | ||
| run: | | ||
| ./run_tests --library-report | ||
| ./run_tests -j4 --raven | ||
|
|
||
| - name: Test Plugins | ||
| continue-on-error: true | ||
| run: | | ||
| ./run_tests -j4 --plugins | ||
|
|
||
| Test-RAVEN-macOS: | ||
| runs-on: macos-latest | ||
| # runs-on: macos-14 | ||
| steps: | ||
| - name: Setup Conda | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| miniconda-version: "latest" | ||
| channels: conda-forge, defaults | ||
| activate-environment: raven_libraries | ||
| use-only-tar-bz2: False | ||
| auto-update-conda: true | ||
| auto-activate-base: true | ||
|
|
||
| - name: Job Information | ||
| run: | | ||
| echo " The job was automatically triggered by a ${{ github.event_name }} event." | ||
| echo " This job is now running on a ${{ runner.os }} server" | ||
| echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
|
||
| - name: Fetch and Branch | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Plugins | ||
| run: | | ||
| pwd | ||
| python3 ./scripts/install_plugins.py -a | ||
|
|
||
| - name: Set Python Environment and Build Raven | ||
| run: | | ||
| ./scripts/establish_conda_env.sh --install | ||
| ./build_raven | ||
|
|
||
| - name: Test RAVEN | ||
| # if: always() | ||
| continue-on-error: true | ||
| run: | | ||
| ./run_tests --library-report | ||
| ./run_tests -j4 --raven | ||
|
|
||
| - name: Test Plugins | ||
| continue-on-error: true | ||
| run: | | ||
| ./run_tests -j4 --plugins | ||
|
|
||
| Test-RAVEN-Windows: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - name: Setup Conda | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| miniconda-version: "latest" | ||
| channels: conda-forge, defaults | ||
| activate-environment: raven_libraries | ||
| use-only-tar-bz2: true | ||
| auto-update-conda: true | ||
| auto-activate-base: true | ||
|
|
||
| - name: Job Information | ||
| run: | | ||
| echo " The job was automatically triggered by a ${{ github.event_name }} event." | ||
| echo " This job is now running on a ${{ runner.os }} server" | ||
| echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
|
||
| - name: Fetch and Branch | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Plugins | ||
| run: | | ||
| pwd | ||
| python ./scripts/install_plugins.py -a | ||
|
|
||
| - name: Set Python Environment and Build Raven | ||
| run: | | ||
| bash ./scripts/establish_conda_env.sh --install --conda-defs $HOME/Miniconda3/etc/profile.d/conda.sh | ||
| bash ./build_raven | ||
|
|
||
| - name: Test RAVEN | ||
| # if: always() | ||
| run: | | ||
| bash ./run_tests --library-report | ||
| bash ./run_tests -j4 --raven | ||
|
|
||
| - name: Test Plugins | ||
| continue-on-error: true | ||
| run: | | ||
| bash ./run_tests -j4 --plugins | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
3 changes: 3 additions & 0 deletions
3
tests/framework/PostProcessors/TSACharacterizer/gold/Basic/macChz.csv
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Fourier__signal_fa__period2.0__amplitude,ARMA__signal_fa__variance,ARMA__signal_fa__MA__2,ARMA__signal_fa__MA__1,ARMA__signal_a__AR__1,Fourier__signal_fa__period2.0__phase,ARMA__signal_a__variance,Fourier__signal_f__period10.0__amplitude,Fourier__signal_f__period2.0__phase,ARMA__signal_a__MA__2,ARMA__signal_fa__constant,ARMA__signal_fa__AR__1,ARMA__signal_a__MA__0,Fourier__signal_fa__fit_intercept,Fourier__signal_f__fit_intercept,Fourier__signal_f__period10.0__phase,Fourier__signal_fa__period5.0__phase,Fourier__signal_fa__period10.0__amplitude,Fourier__signal_f__period5.0__amplitude,Fourier__signal_fa__period5.0__amplitude,Fourier__signal_f__period5.0__phase,ARMA__signal_fa__AR__0,ARMA__signal_a__MA__1,ARMA__signal_fa__MA__0,Fourier__signal_fa__period10.0__phase,ARMA__signal_a__AR__0,Fourier__signal_f__period2.0__amplitude,ARMA__signal_a__constant | ||
| 2.27119924552,0.545082802149,-0.0784346169836,0.177036376895,-0.758871353908,-0.165113659694,0.531122354771,4.0,3.50800062309e-15,-0.0764776204887,0.0118581486643,-0.439315188798,-1.14427853933,41.8908824287,42.0,-3.14159265359,0.763083169957,3.6485771704,3.0,3.00629571435,0.785398163397,1.35284007491,0.226235051829,-0.758810272971,-3.08854058527,1.75724084413,2.0,0.00810343993023 | ||
| 2.77834476114,0.277925478839,-0.240259217322,0.418073457847,-0.772077636204,0.00410650639164,0.274702280402,2.0,3.2786106481e-15,-0.239683052249,0.0197562630156,-0.780706487772,-1.09280663591,20.0760911024,20.0,3.14159265359,0.587758626516,2.27417407299,1.0,0.678339437727,0.785398163397,1.77447163616,0.403928679353,-1.11569378557,-3.13023980907,1.76475177792,3.0,0.0180760678735 |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend splitting this (and also for the other OS variants) into a separate "set python environment" and "build raven" step. This makes it clearer which one failed if one of them should fail.