Skip to content

Commit b51bdbd

Browse files
committed
removed two stages -- it runs too long
1 parent 948f984 commit b51bdbd

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

.github/workflows/build.yaml

+4-34
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111

1212
jobs:
13-
build:
13+
build_and_test:
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -29,38 +29,8 @@ jobs:
2929

3030
- name: Install dependencies
3131
run: |
32-
micromamba run -n mattersim pip install .
32+
micromamba run -n mattersim pip install -e .
3333
34-
- name: Save Conda environment as artifact
34+
- name: Run tests
3535
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

0 commit comments

Comments
 (0)