Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

DepHell

v1.0.0

DepHell

package

DepHell

Run DepHell envs

Installation

Copy and paste the following snippet into your .yml file.

              

- name: DepHell

uses: dephell/[email protected]

Learn more about this action in dephell/dephell_action

Choose a version

DepHell GitHub Action

An official GitHub Action to run DepHell commands.

Input variables:

  • dephell-env -- DepHell environment to run.
  • python-version -- Python version to use when creating venv.
  • dephell-version -- DepHell version to install. The latest version is installed by default.

Example

DepHell config (pyproject.toml):

[tool.dephell.main]
from = {format = "pip", path = "requirements.txt"}
command = "pytest"

GitHub Actions workflow (.github/workflows/main.yml):

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  pytest:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run DepHell
        uses: dephell/dephell_action@master
        with:
          dephell-env: pytest
          python-version: ${{ matrix.python-version }}

See DepHell documentation for details on configuring DepHell.