-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: DashBoard App CI Workflow | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:16 | ||
env: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
ports: | ||
- 5433:5432 | ||
options: >- | ||
--health-cmd "pg_isready -U postgres" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | ||
- name: Install dependencies for Dashboard App | ||
working-directory: ./apps/dashboard_app | ||
run: | | ||
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | ||
poetry lock --no-update | ||
poetry install | ||
- name: Install dependencies for Shared | ||
working-directory: ./apps/shared | ||
run: | | ||
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | ||
poetry lock --no-update | ||
poetry install | ||
- name: Run Tests for Dashboard App | ||
working-directory: ./apps/dashboard_app | ||
run: | | ||
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | ||
poetry run pytest |