Potential fix for e2e errors, add init to py mods #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DAL test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
dal_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install python dependencies | |
run: | | |
cd ./Project/backend | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry config virtualenvs.in-project true --local && | |
poetry install --only main | |
- name: Run pytest | |
run: | | |
cd ./Project/backend | |
poetry run pytest |