Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Commit e08f79a

Browse files
committed
upd example
1 parent 5b6c109 commit e08f79a

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

.editorconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ charset = utf-8
1010
trim_trailing_whitespace = true
1111
insert_final_newline = true
1212

13-
[*.{md,rst,txt}]
1413
indent_style = space
15-
indent_size = 4
14+
indent_size = 2
1615

1716
[*.js]
1817
indent_style = space
1918
indent_size = 4
2019

21-
[*.{json,yml,yaml}]
20+
[*.{json,yml,yaml,md}]
2221
indent_style = space
2322
indent_size = 2

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ An official [GitHub Action](https://help.github.com/en/actions) to run [DepHell]
44

55
Input variables:
66

7-
- `dephell-env` -- DepHell environment to run.
8-
- `python-version` -- Python version to use when creating venv.
9-
- `dephell-version` -- DepHell version to install. The latest version is installed by default.
7+
- `dephell-env` -- DepHell environment to run. Default: job name
8+
- `python-version` -- Python version to use when creating venv. Default: `python3`
9+
- `dephell-version` -- DepHell version to install. Default: the latest release.
1010

1111
## Example
1212

@@ -30,11 +30,16 @@ on:
3030
- master
3131

3232
jobs:
33+
# env name detected from the job name, python version explicitly enumerated
3334
pytest:
3435
runs-on: ubuntu-latest
3536
strategy:
3637
matrix:
37-
python-version: [3.6, 3.7, 3.8]
38+
python-version:
39+
- "3.6"
40+
- "3.7"
41+
- "3.8"
42+
- pypy3
3843
steps:
3944
- name: Setup Python
4045
uses: actions/setup-python@v2
@@ -44,9 +49,26 @@ jobs:
4449
uses: actions/checkout@v2
4550
- name: Run DepHell
4651
uses: dephell/dephell_action@master
52+
53+
# env name enumerated, python version is 3.7
54+
linters:
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
dephell-env:
59+
- flake8
60+
- typing
61+
steps:
62+
- name: Setup Python
63+
uses: actions/setup-python@v2
4764
with:
48-
dephell-env: pytest
49-
python-version: ${{ matrix.python-version }}
65+
python-version: "3.7"
66+
- name: Checkout
67+
uses: actions/checkout@v2
68+
- name: Run DepHell
69+
uses: dephell/dephell_action@master
70+
with:
71+
dephell-env: ${{ matrix.dephell-env }}
5072
```
5173
5274
See [DepHell documentation](https://dephell.readthedocs.io/config.html) for details on configuring DepHell.

0 commit comments

Comments
 (0)