{"id":16417421,"url":"https://github.com/MattSegal/django-pytest-github-actions","last_synced_at":"2025-10-26T20:30:31.702Z","repository":{"id":83025210,"uuid":"444741430","full_name":"MattSegal/django-pytest-github-actions","owner":"MattSegal","description":"Minimal example of getting Django + PyTest running on GitHub Actions","archived":false,"fork":false,"pushed_at":"2022-01-13T07:08:46.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T07:12:24.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MattSegal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-05T09:26:04.000Z","updated_at":"2022-09-19T13:48:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"5135b314-1040-46e3-ac80-4bc670bbfc16","html_url":"https://github.com/MattSegal/django-pytest-github-actions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"MattSegal/django-demo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattSegal%2Fdjango-pytest-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattSegal%2Fdjango-pytest-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattSegal%2Fdjango-pytest-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattSegal%2Fdjango-pytest-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MattSegal","download_url":"https://codeload.github.com/MattSegal/django-pytest-github-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:11:30.056Z","updated_at":"2025-10-26T20:30:31.384Z","avatar_url":"https://github.com/MattSegal.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Minimal Django + Pytest + GitHub Actions example\n\nThis minimal example shows you how you can runs pytest on your Django app on every commit using GitHub Actions.\nThis is an example project for [this blog post](https://mattsegal.dev/django-with-pytest-on-github-actions.html).\n\n## Installation\n\nFollow these instructions to setup this demo out locally.\nThis requires Python 3 and the pip package manager.\n\n```bash\n# Create virtual environment\npython -m venv env\n\n# Activate virtual environment (Bash for Linux or Mac)\n. env/bin/activate\n\n# Activate virtual environment (cmd / PowerShell for Windows)\n./env/Scripts/activate\n\n# Install requirements\npip install -r requirements.txt\n```\n\n## Running tests\n\n```bash\n# Activate virtual environment (Bash for Linux or Mac)\n. env/bin/activate\n\n# Go into the Django application folder\ncd app\n\n# Run pytest\npytest -vv\n```\n\n## Running the server\n\n```bash\n# Activate virtual environment (Bash for Linux or Mac)\n. env/bin/activate\n\n\n# Go into the Django application folder\ncd app\n\n# Setup database.\n./manage.py migrate\n\n# Run the development server.\n./manage.py runserver\n\n# Now you can view the project at http://localhost:8000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMattSegal%2Fdjango-pytest-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMattSegal%2Fdjango-pytest-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMattSegal%2Fdjango-pytest-github-actions/lists"}