From 264b1d61fe2f45f3d0341c981da803eca6ba95b6 Mon Sep 17 00:00:00 2001 From: Denis Rozhnovskiy Date: Wed, 28 Aug 2024 14:44:21 +0500 Subject: [PATCH] Added python tests action --- .github/workflows/python_tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/python_tests.yml diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml new file mode 100644 index 0000000..86653d9 --- /dev/null +++ b/.github/workflows/python_tests.yml @@ -0,0 +1,29 @@ +name: Python application tests + +on: [ push, pull_request ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Set PYTHONPATH + run: echo "PYTHONPATH=$(pwd)/pyoutlineapi" >> $GITHUB_ENV + + - name: Run tests + run: | + pytest \ No newline at end of file