{"id":22125621,"url":"https://github.com/dsoftwareinc/setup-python-poetry-action","last_synced_at":"2026-03-19T21:50:36.650Z","repository":{"id":211933406,"uuid":"730308142","full_name":"dsoftwareinc/setup-python-poetry-action","owner":"dsoftwareinc","description":"GitHub Action to setup python \u0026 poetry using cache for dependencies and poetry installation","archived":false,"fork":false,"pushed_at":"2024-07-23T16:43:25.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T13:27:49.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsoftwareinc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-11T16:36:14.000Z","updated_at":"2025-01-10T15:12:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"6003e297-295c-4b79-83dd-792e4e5a77c8","html_url":"https://github.com/dsoftwareinc/setup-python-poetry-action","commit_stats":null,"previous_names":["dsoftwareinc/setup-python-poetry-action"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsoftwareinc%2Fsetup-python-poetry-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsoftwareinc%2Fsetup-python-poetry-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsoftwareinc%2Fsetup-python-poetry-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsoftwareinc%2Fsetup-python-poetry-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsoftwareinc","download_url":"https://codeload.github.com/dsoftwareinc/setup-python-poetry-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245232886,"owners_count":20581701,"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-12-01T16:36:10.741Z","updated_at":"2026-01-05T13:37:49.615Z","avatar_url":"https://github.com/dsoftwareinc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action - Setup and Cache Python Poetry\n\nThis GitHub action simplifies the setup and caching of Poetry dependencies for Python projects.\n\nWhen a job using this action runs for the first time, this action will download Poetry and the required project\ndependencies, then save it to the cache.\n\nFor the following runs (whether it's on a different workflow/job [with the same cached commit][1])\nthis action will restore the cache, which is much faster than downloading everything again.\n\n## Basic Usage\n\n* Make sure you have `pyproject.toml`, `poetry.lock`.\n\n```yaml\nname: ci\n\non:\n  push:\n    branches: [ master ]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      # Deal with environment setup and caching      \n      - name: Check out the repository\n        uses: actions/checkout@v4\n      - name: \"Setup Python, Poetry and Dependencies\"\n        uses: dsoftwareinc/setup-python-poetry-action@v1\n        with:\n          python-version: 3.11\n          poetry-version: 1.7.1\n          poetry-install-additional-args: '-E flag' # Optional\n\n      # Run what you want in the poetry environment\n      - name: Run tests\n        run: |\n          poetry run python manage.py test\n```\n\n## Input variables:\n\n| Name                             | Description                                       | Required | Default value |\n|----------------------------------|---------------------------------------------------|----------|---------------|\n| `python-version`                 | Python version to use.                            | Yes      | n/a           |\n| `poetry-version`                 | Poetry version to use.                            | Yes      | n/a           |\n| `poetry-install-additional-args` | Additional arguments to pass to `poetry install`. | No       | \"\"            |\n\n## Notes\n\n* You can see the list of cache entries by going to:\n  `Repo` -\u003e `Actions` tab -\u003e `Caches` under `Managements` (left navbar, at the bottom).\n* [Don't forget the limitation of cache][2].\n\n## Dependencies\n\n* Python setup using [`actions/setup-python`][3].\n* Poetry install using [`snok/install-poetry`][4].\n* Poetry binary and dependency caching using [`actions/cache`][5].\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License][6].\n\n\n[1]:https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache\n\n[2]:https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy\n\n[3]:https://github.com/actions/setup-python\n\n[4]:https://github.com/snok/install-poetry\n\n[5]:https://github.com/actions/cache\n\n[6]:LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsoftwareinc%2Fsetup-python-poetry-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsoftwareinc%2Fsetup-python-poetry-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsoftwareinc%2Fsetup-python-poetry-action/lists"}