You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
DepHell
v1.0.0
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.
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.