Skip to content

Commit 96bd43d

Browse files
use jwql as template for getting mamba to work
1 parent 1d8c490 commit 96bd43d

File tree

2 files changed

+47
-127
lines changed

2 files changed

+47
-127
lines changed

.github/workflows/python-mamba.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
test:
13+
name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ "ubuntu-latest"]
18+
python-version: [ "3.10" ]
19+
fail-fast: false
20+
env:
21+
PYTHONUNBUFFERED: 1
22+
defaults:
23+
run:
24+
shell: micromamba-shell {0}
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: mamba-org/setup-micromamba@v1
29+
with:
30+
environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }}
31+
environment-file: environment-3.10.yml
32+
create-args: >-
33+
python=${{ matrix.python-version }}
34+
init-shell: none
35+
generate-run-shell: true
36+
37+
- run: pip install -e .[test] pytest-xdist
38+
39+
- run: pip list
40+
41+
- run: micromamba env export
42+
43+
# - run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])"
44+
45+
- run: |
46+
pytest -n auto pystrometry/tests
47+
pytest -n auto pystrometry/utils/tests

.github/workflows/python-package-conda.yml

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)