Skip to content

Commit

Permalink
Test & package project
Browse files Browse the repository at this point in the history
  • Loading branch information
knokko authored and knokko committed Dec 2, 2024
1 parent aed9440 commit 97839ff
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- run: python -m unittest tests/**.py
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = 'cy-helpor'
version = '0.1.0'
requires-python = '>= 3.9'

[tool.hatch.build.targets.wheel]
packages = ['src']
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

import helpor
import src
4 changes: 2 additions & 2 deletions tests/test_dict_ordering.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
from .context import helpor
from .context import src


class TestDictOrdering(unittest.TestCase):
def test_something(self):
helpor.dict_ordering.add_orderings({"hello": "world"})
src.dict_ordering.add_orderings({"hello": "world"})
self.assertEqual(True, False)

0 comments on commit 97839ff

Please sign in to comment.