| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + name: Lint | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + jobs: | ||
| 6 | + black: | ||
| 7 | + runs-on: ubuntu-latest | ||
| 8 | + steps: | ||
| 9 | + - uses: actions/checkout@v2 | ||
| 10 | + - uses: actions/setup-python@v2 | ||
| 11 | + - uses: psf/black@stable | ||
| 12 | + with: | ||
| 13 | + black_args: ". --check" | ||
| 14 | + commitlint: | ||
| 15 | + runs-on: ubuntu-latest | ||
| 16 | + steps: | ||
| 17 | + - uses: actions/checkout@v2 | ||
| 18 | + with: | ||
| 19 | + fetch-depth: 0 | ||
| 20 | + - uses: wagoid/commitlint-github-action@v2 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,45 @@ | |||
| 1 | + name: Test | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + jobs: | ||
| 6 | + unit: | ||
| 7 | + runs-on: ubuntu-latest | ||
| 8 | + strategy: | ||
| 9 | + matrix: | ||
| 10 | + include: | ||
| 11 | + - python-version: 3.6 | ||
| 12 | + toxenv: py36 | ||
| 13 | + - python-version: 3.7 | ||
| 14 | + toxenv: py37 | ||
| 15 | + - python-version: 3.8 | ||
| 16 | + toxenv: py38 | ||
| 17 | + steps: | ||
| 18 | + - uses: actions/checkout@v2 | ||
| 19 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 20 | + uses: actions/setup-python@v2 | ||
| 21 | + with: | ||
| 22 | + python-version: ${{ matrix.python-version }} | ||
| 23 | + - name: Install dependencies | ||
| 24 | + run: pip install tox | ||
| 25 | + - name: Run tests | ||
| 26 | + env: | ||
| 27 | + TOXENV: ${{ matrix.toxenv }} | ||
| 28 | + run: tox | ||
| 29 | + functional: | ||
| 30 | + runs-on: ubuntu-latest | ||
| 31 | + strategy: | ||
| 32 | + matrix: | ||
| 33 | + toxenv: [py_func_v4, py_func_cli] | ||
| 34 | + steps: | ||
| 35 | + - uses: actions/checkout@v2 | ||
| 36 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 37 | + uses: actions/setup-python@v2 | ||
| 38 | + with: | ||
| 39 | + python-version: ${{ matrix.python-version }} | ||
| 40 | + - name: Install dependencies | ||
| 41 | + run: pip install tox | ||
| 42 | + - name: Run tests | ||
| 43 | + env: | ||
| 44 | + TOXENV: ${{ matrix.toxenv }} | ||
| 45 | + run: tox | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments