-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5f87c1
commit a7cae25
Showing
2 changed files
with
15 additions
and
4 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
15 changes: 12 additions & 3 deletions
15
.github/workflows/cache_setup.yml → .github/workflows/testing.yml
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 |
---|---|---|
@@ -1,25 +1,34 @@ | ||
name: test | ||
name: pytest | ||
|
||
on: | ||
push: | ||
branches: [ workflow_trials ] | ||
|
||
jobs: | ||
cache: | ||
pytest: | ||
# Using matrix strategy | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
#-------------------------------------# | ||
# Check out repo and set up Python # | ||
#-------------------------------------# | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: "Setup Python, Poetry and Dependencies" | ||
uses: packetcoders/action-setup-cache-python-poetry@main | ||
with: | ||
python-version: 3.8 | ||
python-version: ${{matrix.python-version}} | ||
poetry-version: 1.2.2 | ||
|
||
#------------------------# | ||
# Run your actual job # | ||
#------------------------# | ||
- name: Run tests | ||
run: | | ||
poetry run pytest |