From cd64e41b2d1774295c1952d864f649bfbe347967 Mon Sep 17 00:00:00 2001 From: Giacomo Pasini Date: Tue, 11 Apr 2023 16:23:43 +0200 Subject: [PATCH] add spec tests to ci --- .github/workflows/ci.yml | 17 +++++++++++++++++ carnot/test_unhappy_path.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..744d6d3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: Spec tests + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.x + uses: actions/setup-python@v4 + with: + # Semantic version range syntax or exact version of a Python version + python-version: '3.x' + - name: Run tests + run: cd carnot && python -m unittest diff --git a/carnot/test_unhappy_path.py b/carnot/test_unhappy_path.py index a3f4384..d970399 100644 --- a/carnot/test_unhappy_path.py +++ b/carnot/test_unhappy_path.py @@ -1,4 +1,4 @@ -from .carnot import * +from carnot import * from unittest import TestCase