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 1617aac commit 8addfca
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,21 @@ on:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

test:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]

poetry-version: [1.7.1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry
run: |
$HOME/.local/bin/poetry config virtualenvs.create false
- name: Install dependencies
run: |
$HOME/.local/bin/poetry install
- name: Run tests
run: |
$HOME/.local/bin/poetry run pytest
- 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

0 comments on commit 8addfca

Please sign in to comment.