Skip to content

Commit

Permalink
Add flow for pytests and allow more python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
oxnick committed Feb 16, 2025
1 parent 2b2dd97 commit 18348bf
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.11]

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: |
poetry run pytest tests/
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"
packages = [{include = "maskerlogger"}]

[tool.poetry.dependencies]
python = "^3.11"
python = ">=3.8"
pyahocorasick = "^2.1.0"
python-json-logger = "^2.0.7"
tomli = "^2.1.1"
Expand Down

0 comments on commit 18348bf

Please # to comment.