From ab599e985b454d1c85357ac57480ebc22fb0afb2 Mon Sep 17 00:00:00 2001 From: Geoffrey Woollard Date: Thu, 20 Jun 2024 15:01:09 -0400 Subject: [PATCH] tests --- .github/workflows/testing.yml | 32 ++++++++++++++++++++++++++++++++ tests/test_map_to_map.py | 5 +++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/testing.yml create mode 100644 tests/test_map_to_map.py diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..4b829dc --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,32 @@ +# GHA workflow for running tests. +# +# Largely taken from +# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# Please check the link for more detailed instructions + +name: Run tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10"] + + steps: + - 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 . + pip install pytest + - name: Test with pytest + run: | + pytest tests/ diff --git a/tests/test_map_to_map.py b/tests/test_map_to_map.py new file mode 100644 index 0000000..968ab07 --- /dev/null +++ b/tests/test_map_to_map.py @@ -0,0 +1,5 @@ +def test_pass(): + assert True + +def test_fail(): + assert False \ No newline at end of file