# deadsnakes-action **Repository Path**: mirrors_glensc/deadsnakes-action ## Basic Information - **Project Name**: deadsnakes-action - **Description**: a GitHub action to install (pre-release) pythons from deadsnakes - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-09 - **Last Updated**: 2026-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/deadsnakes/action/main.svg)](https://results.pre-commit.ci/latest/github/deadsnakes/action/main) deadsnakes/action ================= a GitHub action to install (pre-release) pythons from [deadsnakes] [deadsnakes]: https://github.com/deadsnakes ### using this action To use this action, add it adjacent to `setup-python` and opt into it conditionally. Here's an example which uses `python-version` as a matrix. ```yaml on: push: jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: [3.6, 3.7, 3.8, 3.9-dev, 3.10-dev] name: main steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 if: "!endsWith(matrix.python-version, '-dev')" with: python-version: ${{ matrix.python-version }} - uses: deadsnakes/action@v2.1.1 if: endsWith(matrix.python-version, '-dev') with: python-version: ${{ matrix.python-version }} # debug: true # Optional, to select a Python debug build - run: python --version --version && which python ``` ### available versions - to use nightly builds, add `-dev` to the end of the version name. - [available nightly versions] - to use tagged builds, just use the version number - [available versions] In either case, the actions's `debug` input can be used to install a debug build of the selected Python version, by adding `debug: true`. note: this action is incompatible with ubuntu-16.04 due to a limitation in `add-apt-repository` [available nightly versions]: https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly/+packages [available versions]: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa/+packages