Skip to content

Commit

Permalink
add test stage in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan234 committed Sep 10, 2024
1 parent 4282f8b commit 948f984
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,26 @@ jobs:
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

0 comments on commit 948f984

Please sign in to comment.