Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
its0x4d authored Dec 13, 2023
1 parent 8addfca commit d491980
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ on:
branches: [ main ]

jobs:
test:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
poetry-version: [1.7.1]
runs-on: ubuntu-latest
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]

steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: ${{matrix.python-version}}
poetry-version: ${{matrix.poetry-version}}

- name: Run tests
run: |
poetry run pytest
- uses: actions/checkout@v2

- name: Setup Python and Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: ${{ matrix.python-version }}
poetry-version: '1.7.1' # Specify the desired Poetry version

- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest

0 comments on commit d491980

Please sign in to comment.