-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/packages/vre-panel/t…
…ypescript-5.4.5
- Loading branch information
Showing
87 changed files
with
10,526 additions
and
640 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 |
---|---|---|
|
@@ -34,12 +34,23 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Free Up GitHub Actions Ubuntu Runner Disk Space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: false | ||
swap-storage: true | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ inputs.wheel_artifact_name }} | ||
path: docker/${{ inputs.docker_folder }} | ||
- uses: mikefarah/yq@v4.42.1 | ||
- uses: mikefarah/yq@v4.44.2 | ||
|
||
- name: add whl and start files | ||
run: | | ||
|
@@ -69,11 +80,21 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Check and truncate version | ||
id: check_and_truncate | ||
run: | | ||
version=${{ steps.get_version.outputs.version }} | ||
if [ ${#version} -gt 10 ]; then | ||
echo "::set-output name=version::${version:0:10}" | ||
else | ||
echo "::set-output name=version::$version" | ||
fi | ||
- name: Build docker | ||
uses: docker/build-push-action@v5 | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: docker/${{ inputs.docker_folder }} | ||
push: ${{ inputs.push }} | ||
tags: qcdis/${{ inputs.tag }}:${{ steps.get_version.outputs.version }},qcdis/${{ inputs.tag }}:latest | ||
tags: qcdis/${{ inputs.tag }}:${{ steps.check_and_truncate.outputs.version }},qcdis/${{ inputs.tag }}:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=min |
File renamed without changes.
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,51 @@ | ||
name: Collect tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
default: ubuntu-latest | ||
type: string | ||
|
||
|
||
jobs: | ||
build-wheel: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
python-version: 3.11 | ||
path: ${{ env.CONDA }}/envs | ||
environment-file: environment.yml | ||
activate-environment: jupyterlab | ||
use-mamba: true | ||
|
||
- name: Cache Conda environment | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.CONDA }}/envs | ||
key: conda-environment-${{ runner.os }}-${{ hashFiles('environment.yml') }} | ||
restore-keys: | | ||
conda-environment-${{ runner.os }}- | ||
id: cache-conda | ||
|
||
- name: pytest | ||
shell: bash -l {0} | ||
run: | | ||
conda activate jupyterlab | ||
pip install --upgrade build | ||
mkdir -p /tmp/data | ||
pytest --collect-only -q | grep 'tests/' | jq -R . | jq -s . > test_list.json | ||
- name: Upload pytest output as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test_list | ||
path: test_list.json |
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,46 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
default: ubuntu-latest | ||
type: string | ||
|
||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ inputs.runs-on }} | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
python-version: 3.11 | ||
path: ${{ env.CONDA }}/envs | ||
environment-file: environment.yml | ||
activate-environment: jupyterlab | ||
use-mamba: true | ||
|
||
- name: Cache Conda environment | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.CONDA }}/envs | ||
key: conda-environment-${{ runner.os }}-${{ hashFiles('environment.yml') }} | ||
restore-keys: | | ||
conda-environment-${{ runner.os }}- | ||
id: cache-conda | ||
|
||
- name: Lint with flake8 | ||
shell: bash -l {0} | ||
run: | | ||
conda activate jupyterlab | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
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,92 @@ | ||
name: make release | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
default: ubuntu-latest | ||
type: string | ||
api_endpoint: | ||
required: true | ||
type: string | ||
cell_github: | ||
required: true | ||
type: string | ||
debug: | ||
required: true | ||
type: string | ||
jupyterhub_user: | ||
required: true | ||
type: string | ||
module_mapping_url: | ||
required: true | ||
type: string | ||
registry_url: | ||
required: true | ||
type: string | ||
search_api_endpoint: | ||
required: true | ||
type: string | ||
vlab_slug: | ||
required: true | ||
type: string | ||
secrets: | ||
cell_github_token: | ||
required: true | ||
naavre_api_token: | ||
required: true | ||
search_api_token: | ||
required: true | ||
|
||
env: | ||
CELL_GITHUB: ${{ inputs.cell_github }} | ||
CELL_GITHUB_TOKEN: ${{ secrets.cell_github_token }} | ||
REGISTRY_URL: ${{ inputs.registry_url }} | ||
NAAVRE_API_TOKEN: ${{ secrets.naavre_api_token }} | ||
JUPYTERHUB_USER: ${{ inputs.jupyterhub_user }} | ||
API_ENDPOINT: ${{ inputs.api_endpoint }} | ||
VLAB_SLUG: ${{ inputs.vlab_slug }} | ||
MODULE_MAPPING_URL: ${{ inputs.module_mapping_url }} | ||
SEARCH_API_ENDPOINT: ${{ inputs.search_api_endpoint }} | ||
SEARCH_API_TOKEN: ${{ secrets.search_api_token }} | ||
ASYNC_TEST_TIMEOUT: 30 | ||
DEBUG: ${{ inputs.debug }} | ||
|
||
|
||
jobs: | ||
make-release: | ||
runs-on: ${{ inputs.runs-on }} | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
python-version: 3.11 | ||
path: ${{ env.CONDA }}/envs | ||
environment-file: environment.yml | ||
activate-environment: jupyterlab | ||
use-mamba: true | ||
|
||
- name: Cache Conda environment | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.CONDA }}/envs | ||
key: conda-environment-${{ runner.os }}-${{ hashFiles('environment.yml') }} | ||
restore-keys: | | ||
conda-environment-${{ runner.os }}- | ||
id: cache-conda | ||
|
||
- name: make release | ||
shell: bash -el {0} | ||
run: make release | ||
|
||
- name: 'Upload wheel artifact' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jupyterlab_vre | ||
path: dist/jupyterlab_vre-0.1.0-py3-none-any.whl |
Oops, something went wrong.