forked from Project-MONAI/MONAI
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from Project-MONAI/dev
merge master
- Loading branch information
Showing
886 changed files
with
38,344 additions
and
16,347 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
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
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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ dev, main ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ dev ] | ||
schedule: | ||
- cron: '18 1 * * 0' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'cpp', 'python' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
# - name: Autobuild | ||
# uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
- name: Build | ||
run: | | ||
python -m pip install -r requirements-dev.txt | ||
BUILD_MONAI=1 ./runtests.sh --build | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: conda | ||
|
||
on: | ||
schedule: | ||
- cron: "0 3 * * *" # at 03:00 UTC | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
# automatically cancel the previously triggered workflows when there's a newer version | ||
group: conda-tests-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cron-conda: | ||
if: github.repository == 'Project-MONAI/MONAI' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
python-version: ["3.7"] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
QUICKTEST: True | ||
steps: | ||
- if: runner.os == 'windows' | ||
name: Config pagefile (Windows only) | ||
uses: al-cheb/configure-pagefile-action@v1.2 | ||
with: | ||
minimum-size: 8 | ||
maximum-size: 16 | ||
disk-root: "D:" | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install env (CPU ${{ runner.os }}) | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
conda env create --file environment-dev.yml | ||
- if: runner.os == 'windows' | ||
name: Windows only install | ||
shell: bash -l {0} | ||
run: | | ||
conda activate monai | ||
# this `cpuonly` and -c conda-forge is needed to reduce the paging file size on a github instance | ||
conda install pytorch torchvision torchaudio cpuonly -c pytorch -c conda-forge | ||
conda deactivate | ||
- name: Test env(CPU ${{ runner.os }}) | ||
shell: bash -l {0} | ||
run: | | ||
conda activate monai | ||
$(pwd)/runtests.sh --build --unittests | ||
conda deactivate |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: cron-mmar | ||
|
||
on: | ||
schedule: | ||
- cron: "0 2 * * *" # at 02:00 UTC | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
# automatically cancel the previously triggered workflows when there's a newer version | ||
group: mmar-tests-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cron-load: | ||
if: github.repository == 'Project-MONAI/MONAI' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: cache weekly timestamp | ||
id: pip-cache | ||
run: echo "::set-output name=datew::$(date '+%Y-%V')" | ||
- name: cache for pip | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r requirements-dev.txt | ||
- name: Loading MMARs | ||
run: | | ||
# clean up temporary files | ||
$(pwd)/runtests.sh --build --clean | ||
# run tests | ||
python -m tests.ngc_mmar_loading |
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
Oops, something went wrong.