| 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,39 @@ | |||
| 1 | + name: Docs | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + env: | ||
| 6 | + PY_COLORS: 1 | ||
| 7 | + | ||
| 8 | + jobs: | ||
| 9 | + sphinx: | ||
| 10 | + runs-on: ubuntu-20.04 | ||
| 11 | + steps: | ||
| 12 | + - uses: actions/checkout@v2 | ||
| 13 | + - name: Set up Python | ||
| 14 | + uses: actions/setup-python@v2 | ||
| 15 | + with: | ||
| 16 | + python-version: 3.8 | ||
| 17 | + - name: Install dependencies | ||
| 18 | + run: pip install tox | ||
| 19 | + - name: Build docs | ||
| 20 | + env: | ||
| 21 | + TOXENV: docs | ||
| 22 | + run: tox | ||
| 23 | + | ||
| 24 | + twine-check: | ||
| 25 | + runs-on: ubuntu-20.04 | ||
| 26 | + steps: | ||
| 27 | + - uses: actions/checkout@v2 | ||
| 28 | + - name: Set up Python | ||
| 29 | + uses: actions/setup-python@v2 | ||
| 30 | + with: | ||
| 31 | + python-version: 3.8 | ||
| 32 | + - name: Install dependencies | ||
| 33 | + run: pip install tox twine wheel | ||
| 34 | + - name: Check twine readme rendering | ||
| 35 | + env: | ||
| 36 | + TOXENV: twine-check | ||
| 37 | + run: | | ||
| 38 | + python3 setup.py sdist bdist_wheel | ||
| 39 | + tox | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + name: Lint | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + env: | ||
| 6 | + PY_COLORS: 1 | ||
| 7 | + | ||
| 8 | + jobs: | ||
| 9 | + black: | ||
| 10 | + runs-on: ubuntu-latest | ||
| 11 | + steps: | ||
| 12 | + - uses: actions/checkout@v2 | ||
| 13 | + - uses: actions/setup-python@v2 | ||
| 14 | + - uses: psf/black@stable | ||
| 15 | + with: | ||
| 16 | + black_args: ". --check" | ||
| 17 | + commitlint: | ||
| 18 | + runs-on: ubuntu-latest | ||
| 19 | + steps: | ||
| 20 | + - uses: actions/checkout@v2 | ||
| 21 | + with: | ||
| 22 | + fetch-depth: 0 | ||
| 23 | + - uses: wagoid/commitlint-github-action@v2 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,71 @@ | |||
| 1 | + name: Test | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + env: | ||
| 6 | + PY_COLORS: 1 | ||
| 7 | + | ||
| 8 | + jobs: | ||
| 9 | + unit: | ||
| 10 | + runs-on: ubuntu-20.04 | ||
| 11 | + strategy: | ||
| 12 | + matrix: | ||
| 13 | + include: | ||
| 14 | + - python-version: 3.6 | ||
| 15 | + toxenv: py36 | ||
| 16 | + - python-version: 3.7 | ||
| 17 | + toxenv: py37 | ||
| 18 | + - python-version: 3.8 | ||
| 19 | + toxenv: py38 | ||
| 20 | + steps: | ||
| 21 | + - uses: actions/checkout@v2 | ||
| 22 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 23 | + uses: actions/setup-python@v2 | ||
| 24 | + with: | ||
| 25 | + python-version: ${{ matrix.python-version }} | ||
| 26 | + - name: Install dependencies | ||
| 27 | + run: pip install tox pytest-github-actions-annotate-failures | ||
| 28 | + - name: Run tests | ||
| 29 | + env: | ||
| 30 | + TOXENV: ${{ matrix.toxenv }} | ||
| 31 | + run: tox | ||
| 32 | + | ||
| 33 | + functional: | ||
| 34 | + runs-on: ubuntu-20.04 | ||
| 35 | + strategy: | ||
| 36 | + matrix: | ||
| 37 | + toxenv: [py_func_v4, cli_func_v4] | ||
| 38 | + steps: | ||
| 39 | + - uses: actions/checkout@v2 | ||
| 40 | + - name: Set up Python | ||
| 41 | + uses: actions/setup-python@v2 | ||
| 42 | + with: | ||
| 43 | + python-version: 3.8 | ||
| 44 | + - name: Install dependencies | ||
| 45 | + run: pip install tox pytest-github-actions-annotate-failures | ||
| 46 | + - name: Run tests | ||
| 47 | + env: | ||
| 48 | + TOXENV: ${{ matrix.toxenv }} | ||
| 49 | + run: tox | ||
| 50 | + | ||
| 51 | + coverage: | ||
| 52 | + runs-on: ubuntu-20.04 | ||
| 53 | + steps: | ||
| 54 | + - uses: actions/checkout@v2 | ||
| 55 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 56 | + uses: actions/setup-python@v2 | ||
| 57 | + with: | ||
| 58 | + python-version: 3.8 | ||
| 59 | + - name: Install dependencies | ||
| 60 | + run: pip install tox pytest-github-actions-annotate-failures | ||
| 61 | + - name: Run tests | ||
| 62 | + env: | ||
| 63 | + PY_COLORS: 1 | ||
| 64 | + TOXENV: cover | ||
| 65 | + run: tox | ||
| 66 | + - name: Upload codecov coverage | ||
| 67 | + uses: codecov/codecov-action@v1 | ||
| 68 | + with: | ||
| 69 | + files: ./coverage.xml | ||
| 70 | + flags: unit | ||
| 71 | + fail_ci_if_error: true | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | ], | |
| 5 | 5 | "regexManagers": [ | |
| 6 | 6 | { | |
| 7 | - "fileMatch": ["^.env$"], | ||
| 7 | + "fileMatch": ["^tools/functional/fixtures/.env$"], | ||
| 8 | 8 | "matchStrings": ["GITLAB_TAG=(?<currentValue>.*?)\n"], | |
| 9 | 9 | "depNameTemplate": "gitlab/gitlab-ce", | |
| 10 | 10 | "datasourceTemplate": "docker", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | -r requirements.txt | |
| 2 | 2 | -r test-requirements.txt | |
| 3 | + docker-compose==1.28.2 # prevent inconsistent .env behavior from system install | ||
| 3 | 4 | pytest-console-scripts | |
| 4 | 5 | pytest-docker | |
| Back | FazBrowse Home | New Git URL |
0 commit comments