-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from rzyu45/dev
test: add the SolMuseum test
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |