From bcb35572f56acaf60dc73a2e5b73f002448fe16f Mon Sep 17 00:00:00 2001 From: aranega Date: Tue, 17 Sep 2024 19:28:23 -0600 Subject: [PATCH] Add github action for pytest --- .github/workflows/pytest.yml | 24 ++++++++++++++++++++++++ .gitignore | 3 ++- tests/test_expressions_normal.py | 1 - tests/test_expressions_strict.py | 1 - 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..4d811f1 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,24 @@ +name: Python Tests + +on: [push, pull_request] + +jobs: + pytest: + runs-on: ubuntu-latest + defaults: + run: + working-directory: . + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + - name: Test with pytest + run: | + python -m pytest \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6bdb21b..c76794c 100755 --- a/.gitignore +++ b/.gitignore @@ -190,4 +190,5 @@ modules.xml # End of https://www.gitignore.io/api/pycharm+iml # Local files -.envrc \ No newline at end of file +.envrc +.antlr \ No newline at end of file diff --git a/tests/test_expressions_normal.py b/tests/test_expressions_normal.py index e50dff7..9d00f13 100644 --- a/tests/test_expressions_normal.py +++ b/tests/test_expressions_normal.py @@ -3,7 +3,6 @@ This test module goal is to test all basic constructions of the language. """ import builtins - import pytest diff --git a/tests/test_expressions_strict.py b/tests/test_expressions_strict.py index bc76181..2a165db 100644 --- a/tests/test_expressions_strict.py +++ b/tests/test_expressions_strict.py @@ -3,7 +3,6 @@ This test module goal is to test all basic constructions of the language. """ import builtins - import pytest