Skip to content

a GitHub action to install (pre-release) pythons from deadsnakes

License

Notifications You must be signed in to change notification settings

deadsnakes/action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit.ci status

deadsnakes/action

a GitHub action to install (pre-release) pythons from 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.

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.0
        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

In either case, the actions's debug input can be used to install a debug build of the selected Python version.

note: this action is incompatible with ubuntu-16.04 due to a limitation in add-apt-repository

About

a GitHub action to install (pre-release) pythons from deadsnakes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages