Skip to content
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

Switch to setup-micromamba #148

Merged
merged 4 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/base-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ runs:
ref: main
path: ${{ inputs.server_folder }}

- uses: mamba-org/provision-with-micromamba@main
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: quetz
environment-file: ${{ inputs.server_folder }}/environment.yml
extra-specs: |
create-args: >-
nodejs=16
yarn
yarn=1.21
cache-downloads: true

- name: Install the server
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,20 @@ jobs:
- name: Lint
working-directory: frontend
run: |
yarn install
yarn run eslint:check
yarn run prettier:check
shell: micromamba-shell {0}

- name: Install builder
run: |
conda install build
micromamba install build
shell: bash -el {0}

- name: Package frontend
working-directory: frontend
run: |
set -ex

python -m build -w .
run: python -m build -w .
shell: micromamba-shell {0}

- name: Upload package
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -73,10 +74,10 @@ jobs:
dependencies:
- python=${{ matrix.python-version }}
- nodejs=16
- yarn
- yarn=1.21
EOF

- uses: mamba-org/provision-with-micromamba@main
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: quetz
environment-file: environment.yml
Expand Down Expand Up @@ -115,6 +116,7 @@ jobs:

yarn
yarn build:packages
shell: micromamba-shell {0}

- name: Install
working-directory: examples/light_theme
Expand All @@ -130,6 +132,7 @@ jobs:

quetz-frontend list
quetz-frontend list 2>&1 | grep -ie "@quetz-example/light-theme"
shell: micromamba-shell {0}

- name: Set up browser cache
uses: actions/cache@v2
Expand All @@ -146,12 +149,14 @@ jobs:
set -ex
yarn
yarn playwright install chromium
shell: micromamba-shell {0}

- name: Test example
working-directory: examples/tests
run: |
set -ex
yarn test
shell: micromamba-shell {0}

- name: Upload Playwright Test report
if: always()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ First of all, clone quetz and quetz-frontend, create a conda environment using t
# Create an environment
mamba env create -f quetz/environment.yml
conda activate quetz
mamba install -c conda-forge nodejs=14 yarn
mamba install -c conda-forge nodejs=16 yarn=1.21
```

#### Install Quetz in dev mode
Expand Down