Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 27, 2024
1 parent a1f60be commit 8002a89
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/wep_app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,31 @@ jobs:
with:
python-version: '3.11'

- name: Go to Web_App directory
run: cd apps/web_app

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies for Web_App
working-directory: ./apps/web_app
run: |
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
poetry lock --no-update
poetry install
- name: Run Tests for Web_App
- name: Prepare Environment File
working-directory: ./apps/web_app
run: |
cp .env.dev .env
poetry run pytest --junitxml=results.xml
sed -i 's/DB_HOST=db/DB_HOST=127.0.0.1/' .env
- name: Run Tests for Web_App
working-directory: ./apps/web_app
run: poetry run pytest --junitxml=results.xml

- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: test-results
path: ./apps/web_app/results.xml

0 comments on commit 8002a89

Please sign in to comment.