-
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 remote-tracking branch 'origin/main' into rstudio-vre
- Loading branch information
Showing
39 changed files
with
2,666 additions
and
139 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
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,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 |
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.