From c6c163915ab2c429ca2e5e080efce48058199a85 Mon Sep 17 00:00:00 2001 From: Ruizhi Yu Date: Sun, 24 Nov 2024 12:57:47 +0800 Subject: [PATCH] test: add the SolMuseum test --- .github/workflows/solmuseum.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/solmuseum.yml diff --git a/.github/workflows/solmuseum.yml b/.github/workflows/solmuseum.yml new file mode 100644 index 0000000..0f4100d --- /dev/null +++ b/.github/workflows/solmuseum.yml @@ -0,0 +1,34 @@ +name: Run tests in SolMuseum + +on: + push: + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - '*' + +jobs: + tests_in_cookbook: + + runs-on: windows-latest + + steps: + - name: Checkout Test Repository + uses: actions/checkout@v3 + with: + repository: 'smallbunnies/SolMuseum' + ref: 'main' + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' # caching pip dependencies + + - name: Install Main Repository as Dependency using Git URL + run: | + pip install --upgrade pip setuptools wheel + pip install git+https://github.com/${{github.repository}}.git@${{ github.sha }} + pip install pytest-xdist + + - name: Run Tests + run: | + pytest -n auto