Skip to content

Commit

Permalink
removed two stages -- it runs too long
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan234 committed Sep 10, 2024
1 parent 948f984 commit b51bdbd
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

jobs:
build:
build_and_test:
runs-on: ubuntu-latest

steps:
Expand All @@ -29,38 +29,8 @@ jobs:

- name: Install dependencies
run: |
micromamba run -n mattersim pip install .
micromamba run -n mattersim pip install -e .
- name: Save Conda environment as artifact
- name: Run tests
run: |
tar -czf mattersim-env.tar.gz -C $MAMBA_ROOT_PREFIX/envs/mattersim .
continue-on-error: true

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: mattersim-env
path: mattersim-env.tar.gz

test:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: mattersim-env

- name: Extract environment
run: |
mkdir -p $HOME/micromamba/envs/mattersim
tar -xzf mattersim-env.tar.gz -C $HOME/micromamba/envs/mattersim/
micromamba shell init -s bash -p $HOME/micromamba
source ~/.bashrc
micromamba run -n mattersim pytest -s tests
micromamba run -n mattersim pytest -s tests

0 comments on commit b51bdbd

Please sign in to comment.