-
Notifications
You must be signed in to change notification settings - Fork 21
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
1 parent
faf8b3d
commit aed1ccd
Showing
1 changed file
with
37 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,37 @@ | ||
name: Analytics CI | ||
|
||
on: | ||
push: | ||
branches: [test-gh-action] | ||
pull_request: | ||
paths: | ||
- "analytics/**" | ||
|
||
jobs: | ||
check-migrations: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: analytics/ | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Provide default env vars for django | ||
run: cat dev/.env.docker-compose >> $GITHUB_ENV | ||
|
||
- name: Run tests | ||
run: | | ||
source dev/.env.docker-compose | ||
docker compose up -d | ||
pytest analytics/tests | ||
env: | ||
DJANGO_SETTINGS_MODULE: settings |