-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ahand-auth' of https://github.com/usnistgov/dioptra int…
…o ahand-auth
- Loading branch information
Showing
126 changed files
with
8,042 additions
and
3,273 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 |
---|---|---|
|
@@ -48,12 +48,12 @@ jobs: | |
- tensorflow2-gpu | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/remove-extra-software | ||
|
||
- name: set docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.PROJECT_PREFIX }}/${{ matrix.dioptra-app }} | ||
|
@@ -77,13 +77,13 @@ jobs: | |
org.opencontainers.image.authors=NCCoE Artificial Intelligence Team <[email protected]>, James Glasbrenner <[email protected]>, Cory Miniter <[email protected]>, Howard Huang <[email protected]>, Julian Sexton <[email protected]>, Paul Rowe <[email protected]> | ||
- name: set up docker qemu | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: set up docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: build and push | ||
uses: docker/build-push-action@v4 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
target: final | ||
|
@@ -120,10 +120,10 @@ jobs: | |
- mlflow-tracking | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: "3.9" | ||
|
||
|
@@ -137,7 +137,7 @@ jobs: | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/tox.ini') }} | ||
|
@@ -154,10 +154,10 @@ jobs: | |
path: /tmp | ||
|
||
- name: set up docker qemu | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: set up docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: load the container image | ||
run: | | ||
|
@@ -180,10 +180,10 @@ jobs: | |
- integration-tf-mnist-classifier | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: "3.9" | ||
|
||
|
@@ -197,7 +197,7 @@ jobs: | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/tox.ini') }} | ||
|
@@ -208,10 +208,10 @@ jobs: | |
run: python3 -m pip install tox | ||
|
||
- name: set up docker qemu | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: set up docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: download the nginx testing image | ||
uses: actions/download-artifact@v3 | ||
|
@@ -259,7 +259,7 @@ jobs: | |
- name: cache the mnist dataset download | ||
if: ${{ matrix.tox-env != 'containers' }} | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: /tmp/dioptra-cache/mnist | ||
key: ${{ runner.os }}-dioptra-cache-mnist | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,9 @@ name: pip-compile runs | |
on: | ||
schedule: | ||
- cron: "10 1 * * *" # at 1:10am every day | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
pip-compile: | ||
|
@@ -34,10 +37,10 @@ jobs: | |
- "requirements-dev-tensorflow" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -58,7 +61,7 @@ jobs: | |
|
||
- name: cache dependencies | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini', 'requirements-dev*.in') }} | ||
|
@@ -67,7 +70,7 @@ jobs: | |
- name: cache dependencies (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache-win.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini', 'requirements-dev*.in') }} | ||
|
@@ -129,10 +132,10 @@ jobs: | |
- "tensorflow2-gpu-requirements" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -146,7 +149,7 @@ jobs: | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini', '**/requirements-dev*.in', '**/docker/pip-tools/*-requirements.in') }} | ||
|
@@ -177,16 +180,16 @@ jobs: | |
- "py39-linux-aarch64-mlflow-tracking-requirements" | ||
- "py39-linux-aarch64-restapi-requirements" | ||
- "py39-linux-aarch64-pytorch-cpu-requirements" | ||
# - "py39-linux-aarch64-tensorflow2-cpu-requirements" | ||
- "py39-linux-aarch64-tensorflow2-cpu-requirements" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: set up docker qemu | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: set up docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: setup dockerfile and output folder | ||
run: | | ||
|
@@ -200,7 +203,7 @@ jobs: | |
sudo chmod 0777 /image | ||
- name: build and save to output folder | ||
uses: docker/build-push-action@v4 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/arm64 | ||
|
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 |
---|---|---|
|
@@ -27,10 +27,10 @@ jobs: | |
docs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python 3.9 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: "3.9" | ||
|
||
|
@@ -44,7 +44,7 @@ jobs: | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }} | ||
|
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 |
---|---|---|
|
@@ -37,10 +37,10 @@ jobs: | |
- "mypy" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -54,7 +54,7 @@ jobs: | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }} | ||
|
@@ -68,9 +68,10 @@ jobs: | |
run: python3 -m tox run -e ${{ matrix.tox-testenv }} | ||
|
||
unit-tests: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-20.04", "windows-latest"] | ||
python-version: ["3.9", "3.10"] | ||
tox-testenv: | ||
- "clean,py39-pytest-cov,report" | ||
|
@@ -88,13 +89,14 @@ jobs: | |
tox-testenv: "py39-cookiecutter" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install English words dictionary | ||
if: ${{ matrix.os == 'ubuntu-20.04' }} | ||
run: sudo apt install -y wamerican | ||
|
||
- name: setup python ${{ matrix.python-version }} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -104,19 +106,35 @@ jobs: | |
python3 -m pip install --upgrade pip | ||
- name: get pip cache dir | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
id: pip-cache | ||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: get pip cache dir (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
id: pip-cache-win | ||
run: echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: cache dependencies (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.pip-cache-win.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: install dependencies | ||
run: python3 -m pip install tox | ||
run: python3 -m pip install --upgrade tox | ||
|
||
- name: run tox | ||
run: python3 -m tox run -e ${{ matrix.tox-testenv }} | ||
|
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.