|
|
@ -1,18 +1,12 @@ |
|
|
|
name: build |
|
|
|
on: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
- main |
|
|
|
pull_request: |
|
|
|
branches: |
|
|
|
- main |
|
|
|
on: [push, pull_request, workflow_dispatch] |
|
|
|
jobs: |
|
|
|
lint: |
|
|
|
name: lint |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/setup-python@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
- run: python -m pip install --upgrade pip wheel |
|
|
|
- run: pip install tox tox-gh-actions |
|
|
|
- run: tox -eflake8 |
|
|
@ -30,8 +24,8 @@ jobs: |
|
|
|
fail-fast: false |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/setup-python@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
python-version: ${{ matrix.python }} |
|
|
|
- run: python -m pip install --upgrade pip wheel |
|
|
@ -41,8 +35,8 @@ jobs: |
|
|
|
name: coverage |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/setup-python@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
- run: python -m pip install --upgrade pip wheel |
|
|
|
- run: pip install tox tox-gh-actions |
|
|
|
- run: tox |
|
|
|