From 551e194650bf901175a56338b0eea2fade2c81c9 Mon Sep 17 00:00:00 2001 From: Clement Julia Date: Thu, 25 Jan 2024 12:44:39 +0100 Subject: [PATCH] adding automated tests --- .github/workflows/unittest.yaml | 22 ++++++++++++++++++++++ tests/README.md | 2 +- tests/{memory_test.py => memory_tests.py} | 0 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/unittest.yaml rename tests/{memory_test.py => memory_tests.py} (100%) diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml new file mode 100644 index 0000000..ed17267 --- /dev/null +++ b/.github/workflows/unittest.yaml @@ -0,0 +1,22 @@ +name: Tests +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Test + run: | + python -m unittest.functional_tests + python -m unittest.memory_tests diff --git a/tests/README.md b/tests/README.md index 402ddb4..eb63908 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,5 +2,5 @@ Tests must be run from root directory * `python -m unittest tests.functional_tests` -* `python -m unittest tests.memory_test` +* `python -m unittest tests.memory_tests` * `python -m unittest tests.profiler` diff --git a/tests/memory_test.py b/tests/memory_tests.py similarity index 100% rename from tests/memory_test.py rename to tests/memory_tests.py