Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

chore(ci/api): use pytest-github-actions-annotate-failures#275

Open
c0rydoras wants to merge 1 commit intoadfinis:mainfrom
c0rydoras:chore/tests/pytest-github-actions-annotate-failures
Open

chore(ci/api): use pytest-github-actions-annotate-failures#275
c0rydoras wants to merge 1 commit intoadfinis:mainfrom
c0rydoras:chore/tests/pytest-github-actions-annotate-failures

Conversation

@c0rydoras
Copy link
Copy Markdown
Collaborator

No description provided.

@c0rydoras c0rydoras added backend This issue or pull request is backend related enhancement This issue or pull request discusses non feature changes github_actions Pull requests that update GitHub Actions code labels Mar 8, 2024
@c0rydoras c0rydoras requested a review from hairmare March 8, 2024 14:54
@c0rydoras c0rydoras self-assigned this Mar 8, 2024
- 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
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator Author

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

hairmare
hairmare previously approved these changes Mar 8, 2024
@c0rydoras c0rydoras force-pushed the chore/tests/pytest-github-actions-annotate-failures branch 11 times, most recently from 4846aba to d2cabbd Compare March 11, 2024 09:25
- 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'
Copy link
Copy Markdown

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?

Copy link
Copy Markdown
Collaborator Author

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
image

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

@c0rydoras c0rydoras force-pushed the chore/tests/pytest-github-actions-annotate-failures branch from d2cabbd to 4e59f29 Compare March 11, 2024 12:35
@c0rydoras c0rydoras force-pushed the chore/tests/pytest-github-actions-annotate-failures branch from 4e59f29 to 238a6eb Compare March 11, 2024 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backend This issue or pull request is backend related enhancement This issue or pull request discusses non feature changes github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants