Skip to content

Commit

Permalink
update ci to follow poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
mattholy committed Feb 5, 2024
1 parent bd7f146 commit 24b2530
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,31 @@ 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
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: true

test-wand-zero:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

0 comments on commit 24b2530

Please sign in to comment.