-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ci/api): use pytest-github-actions-annotate-failures #275
base: main
Are you sure you want to change the base?
chore(ci/api): use pytest-github-actions-annotate-failures #275
Conversation
.github/workflows/backend.yaml
Outdated
@@ -31,5 +31,7 @@ jobs: | |||
run: docker compose up -d --build db api | |||
- name: Check for missing migrations | |||
run: docker compose exec -T api ./manage.py makemigrations --check --dry-run --no-input | |||
- name: Install pytest-github-actions-annotate-failures | |||
run: docker compose run --rm -T api pip install pytest-github-actions-annotate-failures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not 💯 convinced this will work, maybe you also need to ensure that the GITHUB_TOKEN env var gets passed into the container where the actual tests are run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are probably right, it didn't annotate any of the ~50 warnings
4846aba
to
d2cabbd
Compare
.github/workflows/backend.yaml
Outdated
- name: Run backend tests | ||
run: make api-test | ||
- name: Run tests | ||
run: docker-compose run --rm -T api sh -c 'pip install pytest-github-actions-annotate-failures && GITHUB_ACTIONS=true ENV=test PYTEST_RUN_PATH=/app pytest --no-cov-on-fail --cov -vvv -s' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the --env / -e
flags to pass envs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did that, sadly it doesn't look like the screenshot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
d2cabbd
to
4e59f29
Compare
4e59f29
to
238a6eb
Compare
No description provided.