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