Skip to content

Commit

Permalink
ci: add testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Nov 8, 2024
1 parent df48396 commit b2e7199
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on:
push:
branches: ["*"]

jobs:
test:
name: Test with Python ${{matrix.python_version}} on ${{matrix.os}}
runs-on: ${{matrix.os}}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python_version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
- os: windows-latest
python_version: "3.13"

steps:
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
shell: bash

- name: Configure Poetry to use virtual environment inside the project
run: poetry config virtualenvs.in-project true

- name: Install dependencies
run: poetry install

- name: Run Tests
run: poetry run pytest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
repository = "https://github.com/unexcellent/quantio"

[tool.poetry.dependencies]
python = "^3.12, <4.0"
python = ">=3.8, <3.14"

[tool.poetry.group.dev.dependencies]
mypy-extensions = "<2.0"
Expand Down

0 comments on commit b2e7199

Please sign in to comment.