Skip to content

Commit

Permalink
lfs and test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Oct 11, 2023
1 parent e5f87c1 commit a7cae25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
branches: [ workflow_trials ]

jobs:
cache:
pytest:
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
Expand Down
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

0 comments on commit a7cae25

Please sign in to comment.