Skip to content
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

👷 Add GitHub Actions workflow for running pytest #5

Merged
merged 8 commits into from
Sep 19, 2024

Conversation

loureirorg
Copy link
Contributor

  • Set up GitHub Actions to automatically run pytest on pushes and pull requests for the main and chore/pypi-release branches.
  • Configured a testing matrix to run tests on Python versions 3.7 through 3.11.
  • Integrated dependency installation using requirements.txt or pyproject.toml (if present).
  • Added steps to checkout code, set up Python environments, and run pytest with coverage.

- Set up GitHub Actions to automatically run `pytest` on pushes and pull requests for the `main` and `chore/pypi-release` branches.
- Configured a testing matrix to run tests on Python versions 3.7 through 3.11.
- Integrated dependency installation using `requirements.txt` or `pyproject.toml` (if present).
- Added steps to checkout code, set up Python environments, and run pytest with coverage.
- Lowered the required version of setuptools to be compatible with Python 3.7.
- Resolved the error: "No matching distribution found for setuptools>=70.0.0" in the GitHub Actions workflow.
- Added `pytest-cov` and `pytest-asyncio` to `pyproject.toml` to ensure proper test execution and coverage reporting.
- Fixed the issue in GitHub Actions where tests failed due to missing dependencies.
- Updated the minimum required Python version to 3.8 to support pytest 8.
- Ensured compatibility with the latest testing framework requirements.
- Updated the job name in the GitHub Actions workflow to correctly format the Python version.
- Resolved an issue where Python 3.10 was incorrectly interpreted as 3.1 in the CI job name.
- Ensured that Python versions 3.8, 3.9, 3.10, and 3.11 are tested correctly.
…matrix variable

- Renamed `python-version` to `python` in the GitHub Actions matrix to prevent issues with version formatting.
- Ensured correct handling of Python versions 3.8, 3.9, 3.10, and 3.11 during CI testing.
- Updated the job name in the GitHub Actions workflow to correctly format the Python version.
- Resolved an issue where Python 3.10 was incorrectly interpreted as 3.1 in the CI job name.
- Ensured that Python versions 3.8, 3.9, 3.10, and 3.11 are tested correctly.
- Updated the minimum required Python version to 3.9 to resolve the 'type' object is not subscriptable error in tests.
- Ensured compatibility with Python features introduced in 3.9.
@loureirorg loureirorg merged commit eb271e2 into main Sep 19, 2024
3 checks passed
@loureirorg loureirorg deleted the ci/github-actions-pytest branch September 19, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant