Skip to content

Add minimal pytest workflow - #35

Merged
nova-rey merged 1 commit into
APIfrom
codex/add-minimal-pytest-ci-workflow
Oct 22, 2025
Merged

nova-rey merged 1 commit into
APIfrom
codex/add-minimal-pytest-ci-workflow

Conversation

@nova-rey

Copy link
Copy Markdown
Owner

Summary

  • replace the CI workflow with a single minimal pytest job that installs only pytest
  • ensure the workflow runs tests directly from the source tree and skips gracefully when no tests are present

Testing

  • not run

https://chatgpt.com/codex/tasks/task_e_68f96aafd6ac8328b96e7b804535cc48

@nova-rey
nova-rey merged commit bd4fb61 into API Oct 22, 2025
2 of 4 checks passed
@nova-rey
nova-rey deleted the codex/add-minimal-pytest-ci-workflow branch October 22, 2025 23:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Comment on lines +22 to +25
- name: Install pytest (only)
run: |
python -m pip install -U pip wheel
pip install pytest pytest-cov || true
# Try to install the project if it's installable; ignore failure to keep tests running
pip install -e . || true

- name: Environment summary
run: |
python --version
which python
echo "PYTHONPATH before: ${PYTHONPATH:-<unset>}"
ls -la
echo "Packages:"
python - <<'PY'
import sys, pkgutil
print("installed sample:", [m.name for m in pkgutil.iter_modules()][:20])
PY
python -m pip install -U pip
pip install pytest

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Install project dependencies before running pytest

This workflow now installs only pytest, but the test suite imports third‑party packages such as fastapi and httpx (e.g. tests/test_version_identity.py). On a fresh GitHub runner these packages are not present, so the job will raise ModuleNotFoundError before any tests execute. Installing the project’s runtime requirements (for example via pip install -e . or pip install -r requirements.txt) is needed for the CI run to succeed.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant