Skip to content

Commit

Permalink
Use miniconda for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Apr 26, 2023
1 parent 8bd37ab commit f5bffc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
working-directory: conda-store-server
strategy:
matrix:
Expand All @@ -24,13 +25,12 @@ jobs:
uses: actions/checkout@master

- name: Set up Python
uses: actions/setup-python@v2
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
pip install hatch
mamba-version: "*"
activate-environment: conda-store-server-dev
environment-file: conda-store-server/environment-dev.yaml
auto-activate-base: false

- name: Linting Checks
run: |
Expand All @@ -42,6 +42,7 @@ jobs:
- name: Unit Tests
run: |
echo $CONDA_PREFIX
hatch env run -e dev unit-test
integration-test-conda-store-server:
Expand Down
2 changes: 1 addition & 1 deletion conda-store-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fmt = [
"lint",
]
docs = "sphinx-build -b html ../docs ../docs/_build"
unit-test = "pytest tests"
unit-test = "pytest tests -v"
playwright-test = [
"playwright install",
"pytest --video on ../tests/test_playwright.py"
Expand Down

0 comments on commit f5bffc5

Please sign in to comment.