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