Skip to content

Commit

Permalink
ci: add workflow ci.yml to test all python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cryptofc committed Oct 2, 2024
1 parent 579ddec commit e975166
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.8.3"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Virtual environment and libraries installation
run: poetry install --with=dev

- name: Run tests
run: poetry run pytest -v

0 comments on commit e975166

Please sign in to comment.