Skip to content

Commit

Permalink
Merge branch 'main' into include-pytyped
Browse files Browse the repository at this point in the history
  • Loading branch information
truh committed Apr 23, 2024
2 parents e6bfa0e + 0ec2f23 commit 6b34079
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 68 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, and run tests with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

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

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.7.1"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Add poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
mkdir reports
poetry run pytest --junitxml=reports/pytest_report.xml
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Pytest Tests
path: /home/runner/work/maphash/maphash/reports/pytest*.xml
reporter: java-junit
107 changes: 40 additions & 67 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "Readme.rst"
python = ">=3.8,<4"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
pytest = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 6b34079

Please sign in to comment.