-
Notifications
You must be signed in to change notification settings - Fork 43
54 lines (42 loc) · 1.24 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: JWQL CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install bandit
- run: bandit ./jwql/ -c .bandit
test:
name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9, "3.10"]
steps:
- uses: actions/checkout@v4
- uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: ./environment_python_${{ matrix.python-version }}.yml
cache-env: true
cache-downloads: true
- run: pip install -e .[test]
- run: conda env export
- uses: supercharge/[email protected]
with:
redis-version: 5.0
if: runner.os == 'Linux'
- run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])"
- run: pytest jwql/tests/