{"id":19443339,"url":"https://github.com/smashedr/py-test-action","last_synced_at":"2025-08-23T10:05:58.961Z","repository":{"id":249601485,"uuid":"831962127","full_name":"smashedr/py-test-action","owner":"smashedr","description":"Python Test Action","archived":false,"fork":false,"pushed_at":"2025-02-17T01:16:02.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T10:04:36.526Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smashedr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2024-07-22T04:38:42.000Z","updated_at":"2025-02-17T01:09:55.000Z","dependencies_parsed_at":"2024-11-10T15:44:49.815Z","dependency_job_id":"e924f69c-ed1b-4bde-9a97-8fcb27bace89","html_url":"https://github.com/smashedr/py-test-action","commit_stats":null,"previous_names":["smashedr/py-test-action"],"tags_count":7,"template":true,"template_full_name":null,"purl":"pkg:github/smashedr/py-test-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fpy-test-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fpy-test-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fpy-test-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fpy-test-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smashedr","download_url":"https://codeload.github.com/smashedr/py-test-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smashedr%2Fpy-test-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746524,"owners_count":24813569,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T15:42:51.897Z","updated_at":"2025-08-23T10:05:58.930Z","avatar_url":"https://github.com/smashedr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tags](https://img.shields.io/github/actions/workflow/status/smashedr/py-test-action/tags.yaml?logo=github\u0026logoColor=white\u0026label=tags)](https://github.com/smashedr/py-test-action/actions/workflows/tags.yaml)\n[![Test](https://img.shields.io/github/actions/workflow/status/smashedr/py-test-action/test.yaml?logo=github\u0026logoColor=white\u0026label=test)](https://github.com/smashedr/py-test-action/actions/workflows/test.yaml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=smashedr_py-test-action\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=smashedr_py-test-action)\n[![GitHub Release Version](https://img.shields.io/github/v/release/smashedr/py-test-action?logo=github)](https://github.com/smashedr/py-test-action/releases/latest)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/smashedr/py-test-action?logo=github\u0026logoColor=white\u0026label=updated)](https://github.com/smashedr/py-test-action/graphs/commit-activity)\n[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/shaner/py-test-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F\u0026logo=codeberg\u0026logoColor=white\u0026label=updated)](https://codeberg.org/shaner/py-test-action)\n[![GitHub Top Language](https://img.shields.io/github/languages/top/smashedr/py-test-action?logo=htmx\u0026logoColor=white)](https://github.com/smashedr/py-test-action)\n[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat\u0026logo=github\u0026logoColor=white)](https://cssnr.github.io/)\n[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord\u0026logoColor=white\u0026label=discord\u0026color=7289da)](https://discord.gg/wXy6m2X8wY)\n\n# Python Test Action\n\nThis action creates or updates the provided `tag` to the `sha` has that triggered the workflow.\n\nThis includes inputs, outputs, job summary, and automatic token authentication.\n\n\u003e [!NOTE]  \n\u003e Note: this is a simple docker action and is built every run from the Dockerfile.\n\u003e If you have a more complex build you should build and push images to GHCR.  \n\u003e For this you should instead use this template: https://github.com/smashedr/docker-test-action\n\n- [Inputs](#Inputs)\n- [Outputs](#Outputs)\n- [Examples](#Examples)\n- [Development](#Development)\n\n## Inputs\n\n| input   | required | default               | description                 |\n| ------- | -------- | --------------------- | --------------------------- |\n| tag     | No       | test                  | Tag to Create or Update     |\n| summary | No       | true                  | Add Summary to Job          |\n| token   | No       | `${{ github.token }}` | Only if External Token [^1] |\n\nWith no inputs this will create/update the tag `test`.\n\n```yaml\n- name: 'Python Test Action'\n  uses: smashedr/py-test-action@v1\n```\n\nWith all inputs. Note that `token` is NOT required.\n\n```yaml\n- name: 'Python Test Action'\n  uses: smashedr/py-test-action@v1\n  with:\n    tag: test\n    summary: true\n    token: ${{ secrets.PAT }} # only include this if you need to use a PAT\n```\n\n### Permissions\n\nThis action requires the following permissions:\n\n```yaml\npermissions:\n  contents: write\n```\n\n## Outputs\n\n| output | description |\n| ------ | ----------- |\n| sha    | Tag Hash    |\n\n```yaml\n- name: 'Python Test Action'\n  id: test\n  uses: smashedr/py-test-action@v1\n\n- name: 'Echo Output'\n  run: |\n    echo \"sha: '${{ steps.test.outputs.sha }}'\"\n```\n\n## Examples\n\n```yaml\nname: 'Test'\n\non:\n  workflow_dispatch:\n  push:\n\njobs:\n  test:\n    name: 'Test'\n    runs-on: ubuntu-latest\n    timeout-minutes: 5\n    permissions:\n      contents: write\n\n    steps:\n      - name: 'Checkout'\n        uses: actions/checkout@v4\n\n      - name: 'Python Test Action'\n        id: test\n        uses: smashedr/py-test-action@v1\n\n      - name: 'Echo Outputs'\n        run: |\n          echo \"sha: '${{ steps.test.outputs.sha }}'\"\n```\n\n# Development\n\nIf you would like to submit a PR, please review the [CONTRIBUTING.md](CONTRIBUTING.md).\n\n1. Install `act`: https://nektosact.com/installation/index.html\n2. Create a `.secrets` file with: `GITHUB_TOKEN=\"ghp_xxx\"`\n3. Run `act -j test`\n\nFor advanced using with things like secrets, variables and context see: https://nektosact.com/usage/index.html\n\nYou should also review the options from `act --help`\n\nNote, the `.env`, `.secrets` and `.vars` files are automatically sourced with no extra options.\nTo source `event.json` you need to run act with `act -e event.json`\n\n[^1]:\n    The `${{ github.token }}` / `{{ secrets.GITHUB_TOKEN }}` is automatically passed, there is no need to manually pass these!\n    This is only available to allow users to pass a different token they have created and defined in their `secrets`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashedr%2Fpy-test-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmashedr%2Fpy-test-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmashedr%2Fpy-test-action/lists"}