Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tests

on:
pull_request:
branches: ['main'] # To main (direct commits, or merges from PRs).
workflow_dispatch: # allows manual run from GitHub UI

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Go Task
uses: arduino/setup-task@v2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install -r requirements-dev.txt
- name: Install dependencies
run: |
pip install -e .[dev] # -e means in editable mode, [dev] means also install the optional dependency group called dev

- name: Run tests
run: task test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yini-parser-python

from yini_parser import load

Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ dependencies = [
"antlr4-python3-runtime==4.13.2",
]

[project.optional-dependencies]
dev = [
"pytest",
]

[tool.pytest.ini_options]
pythonpath = ["src"]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Defaults": {
"from_address": "noreply@example.com",
"reply_to": null,
"signature": "Kind regards,\r\n\tThe Example Team\r\n\t"
"signature": "Kind regards,\n\tThe Example Team\n\t"
}
}
}
Loading