-
-
Notifications
You must be signed in to change notification settings - Fork 21
80 lines (69 loc) · 1.95 KB
/
test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: ci-branch-tests
on: push
concurrency:
group: ada-quick-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
test-core:
name: Test ada-py-core
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: mamba-org/setup-micromamba@v2 # https://github.com/mamba-org/setup-micromamba
with:
cache-environment: false
condarc: |
channels:
- conda-forge
environment-file: conda/environment.core.yml
create-args: >-
python=3.12
pytest
pytest-asyncio
pytest-benchmark
- name: Install latest adapy
run: |
pip install -e .
- name: Runs Tests
run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/full/ --ignore=./tests/profiling/ --durations=0
test-full:
name: Test ada-py-full
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2 # https://github.com/mamba-org/setup-micromamba
with:
cache-environment: false
condarc: |
channels:
- conda-forge
environment-file: conda/environment.core.yml
create-args: >-
python=3.12
pytest
pytest-asyncio
pytest-benchmark
jupyterlab
pyparsing
ipywidgets
websockets
nodejs
pygfx
pyglfw
- name: Install latest adapy
run: |
pip install -e .
pip install pytest-playwright
- name: install playwright
run: |
playwright install
- name: Run Tests
run: pytest ./tests --ignore=./tests/fem/ --ignore=./tests/profiling/ --durations=0