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

Use micromamba in CI #301

Merged
merged 1 commit into from
Jan 7, 2025
Merged
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
16 changes: 4 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,24 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
- name: Install mamba
uses: mamba-org/setup-micromamba@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: "3.11"

environment-name: jupyter_ydoc
- name: Install dependencies
run: |
mamba install pip nodejs=18
micromamba install pip nodejs=18
pip install ".[test]"

- name: Build JavaScript assets
working-directory: javascript
run: |
yarn
yarn build

- name: Linter check
if: ${{ !contains(matrix.os, 'windows') }}
working-directory: javascript
run: |
yarn lint:check

- name: Integrity check
if: ${{ !contains(matrix.os, 'windows') }}
working-directory: javascript
Expand All @@ -76,13 +70,11 @@ jobs:
echo "Integrity test failed; please run locally 'yarn integrity' and commit the changes"
exit 1
fi

- name: Run JS tests
working-directory: javascript
run: |
yarn build:test
yarn test:cov

- name: Run Python tests
run: |
python -m pytest -v
Loading