File tree 1 file changed +4
-34
lines changed
1 file changed +4
-34
lines changed Original file line number Diff line number Diff line change 10
10
- main
11
11
12
12
jobs :
13
- build :
13
+ build_and_test :
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
29
29
30
30
- name : Install dependencies
31
31
run : |
32
- micromamba run -n mattersim pip install .
32
+ micromamba run -n mattersim pip install -e .
33
33
34
- - name : Save Conda environment as artifact
34
+ - name : Run tests
35
35
run : |
36
- tar -czf mattersim-env.tar.gz -C $MAMBA_ROOT_PREFIX/envs/mattersim .
37
- continue-on-error : true
38
-
39
- - name : Upload artifact
40
- uses : actions/upload-artifact@v3
41
- with :
42
- name : mattersim-env
43
- path : mattersim-env.tar.gz
44
-
45
- test :
46
- runs-on : ubuntu-latest
47
- needs : build
48
-
49
- steps :
50
- - name : Checkout repository
51
- uses : actions/checkout@v3
52
-
53
- - name : Download artifact
54
- uses : actions/download-artifact@v3
55
- with :
56
- name : mattersim-env
57
-
58
- - name : Extract environment
59
- run : |
60
- mkdir -p $HOME/micromamba/envs/mattersim
61
- tar -xzf mattersim-env.tar.gz -C $HOME/micromamba/envs/mattersim/
62
- micromamba shell init -s bash -p $HOME/micromamba
63
- source ~/.bashrc
64
- micromamba run -n mattersim pytest -s tests
65
-
66
-
36
+ micromamba run -n mattersim pytest -s tests
You can’t perform that action at this time.
0 commit comments