diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c195632..e0effda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,20 +14,27 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v2 with: - python-version: "3.11" + python-version: "3.12" - - name: Install backend dependencies + - name: Install Poetry run: | - python -m pip install --upgrade pip - pip install -r ./service/backend/requirements.txt - pip install pytest-cov httpx + curl -sSL https://install.python-poetry.org | python3 - + + - name: Configure Poetry + run: | + echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Install dependencies with Poetry + run: | + poetry config virtualenvs.create false + poetry install - name: Run backend tests with coverage run: | - pytest --cov=./service/backend --cov-report=xml ./service/backend/tests + poetry run pytest --cov=./service/backend --cov-report=xml ./service/backend/tests - name: Upload backend coverage to Codecov uses: codecov/codecov-action@v2 @@ -35,8 +42,3 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml fail_ci_if_error: true - - test-wand-zero: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2