From 44b3422677406f07dac2e78258aaafb2d25e2a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=98=B1=E5=86=B0?= Date: Wed, 17 Apr 2024 10:33:12 +0800 Subject: [PATCH] [WIP] CI tests --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..eba58fe --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +name: Run Tests +on: + push: + branches: ["main", "ci/**"] + pull_request: + branches: ["*"] +jobs: + test-deepsolid: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: netobs + - uses: actions/checkout@v4 + with: + repository: AllanChain/deepsolid + ref: update-with-force + path: deepsolid + - uses: actions/setup-python@v5 + with: + python-version: '3.9' + - name: Install + run: | + pip install -e deepsolid scipy==1.8.0 + pip install 'jax[cpu]'==0.2.26 -f https://storage.googleapis.com/jax-releases/jax_releases.html + pip install -e 'netobs[dev]' + - name: Test + working-directory: netobs + run: pytest + test-ferminet: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: netobs + - uses: actions/checkout@v4 + with: + repository: google-deepmind/ferminet + path: ferminet + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install + run: | + pip install -e ferminet + pip install -e 'netobs[dev]' + - name: Test + working-directory: netobs + run: pytest