Skip to content

Commit 8b08230

Browse files
committed
WIP redo test workflow
1 parent b9d2e9a commit 8b08230

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/build_and_test.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 5
1010
matrix:
11-
python-version: ["3.10"] #, "3.9", "3.10"]
11+
python-version: ["3.8", "3.9", "3.10"]
1212

1313
# Skip `pull_request` runs on local PRs for which `push` runs are already triggered
1414
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
@@ -30,25 +30,23 @@ jobs:
3030
- 6379:6379
3131

3232
steps:
33-
- uses: actions/checkout@v3
34-
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v3
36-
with:
37-
python-version: ${{ matrix.python-version }}
33+
- name: Code checkout
34+
uses: actions/checkout@v3
3835

39-
- name: Set up Conda environment
36+
- name: Set up Conda environment with micromamba for Python ${{ matrix.python-version }}
4037
uses: mamba-org/setup-micromamba@v1
4138
with:
42-
micromamba-version: "latest"
43-
environment-file: conda-environment.yml
4439
cache-environment: true
40+
create-args: >-
41+
python=${{ matrix.python-version }}
42+
environment-file: conda-environment.yml
4543
post-cleanup: "all"
4644

4745
- name: Install MXCuBE
4846
run: "${MAMBA_EXE} run --name mxcubeweb poetry install"
4947

5048
- name: Linting & Code Quality
51-
run: "${MAMBA_EXE} run --name mxcubeweb poetry run pre-commit run --all-files"
49+
run: "${MAMBA_EXE} run --name mxcubeweb pre-commit run --all-files"
5250

5351
- name: Test with pytest
54-
run: "${MAMBA_EXE} run --name mxcubeweb poetry run pytest"
52+
run: "${MAMBA_EXE} run --name mxcubeweb pytest"

0 commit comments

Comments
 (0)