2 changed files with 51 additions and 48 deletions
@ -1,47 +1,47 @@ |
|||||
name: build |
#name: build |
||||
on: [push, pull_request, workflow_dispatch] |
#on: [push, pull_request, workflow_dispatch] |
||||
jobs: |
#jobs: |
||||
lint: |
# lint: |
||||
name: lint |
# name: lint |
||||
runs-on: ubuntu-latest |
# runs-on: ubuntu-latest |
||||
steps: |
# steps: |
||||
- uses: actions/checkout@v4 |
# - uses: actions/checkout@v4 |
||||
- uses: actions/setup-python@v5 |
# - uses: actions/setup-python@v5 |
||||
- run: python -m pip install --upgrade pip wheel |
# - run: python -m pip install --upgrade pip wheel |
||||
- run: pip install tox tox-gh-actions |
# - run: pip install tox tox-gh-actions |
||||
- run: tox -eflake8 |
# - run: tox -eflake8 |
||||
- run: tox -edocs |
# - run: tox -edocs |
||||
tests: |
# tests: |
||||
name: tests |
# name: tests |
||||
strategy: |
# strategy: |
||||
matrix: |
# matrix: |
||||
os: [windows-latest, macos-latest, ubuntu-latest] |
# os: [windows-latest, macos-latest, ubuntu-latest] |
||||
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10'] |
# python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10'] |
||||
exclude: |
# exclude: |
||||
# pypy3 currently fails to run on Windows |
# # pypy3 currently fails to run on Windows |
||||
- os: windows-latest |
# - os: windows-latest |
||||
python: pypy-3.10 |
# python: pypy-3.10 |
||||
fail-fast: false |
# fail-fast: false |
||||
runs-on: ${{ matrix.os }} |
# runs-on: ${{ matrix.os }} |
||||
steps: |
# steps: |
||||
- uses: actions/checkout@v4 |
# - uses: actions/checkout@v4 |
||||
- uses: actions/setup-python@v5 |
# - uses: actions/setup-python@v5 |
||||
with: |
# with: |
||||
python-version: ${{ matrix.python }} |
# python-version: ${{ matrix.python }} |
||||
- run: python -m pip install --upgrade pip wheel |
# - run: python -m pip install --upgrade pip wheel |
||||
- run: pip install tox tox-gh-actions |
# - run: pip install tox tox-gh-actions |
||||
- run: tox |
# - run: tox |
||||
coverage: |
# coverage: |
||||
name: coverage |
# name: coverage |
||||
runs-on: ubuntu-latest |
# runs-on: ubuntu-latest |
||||
steps: |
# steps: |
||||
- uses: actions/checkout@v4 |
# - uses: actions/checkout@v4 |
||||
- uses: actions/setup-python@v5 |
# - uses: actions/setup-python@v5 |
||||
- run: python -m pip install --upgrade pip wheel |
# - run: python -m pip install --upgrade pip wheel |
||||
- run: pip install tox tox-gh-actions |
# - run: pip install tox tox-gh-actions |
||||
- run: tox |
# - run: tox |
||||
- uses: codecov/codecov-action@v3 |
# - uses: codecov/codecov-action@v3 |
||||
with: |
# with: |
||||
files: ./coverage.xml |
# files: ./coverage.xml |
||||
fail_ci_if_error: true |
# fail_ci_if_error: true |
||||
token: ${{ secrets.CODECOV_TOKEN }} |
# token: ${{ secrets.CODECOV_TOKEN }} |
||||
|
Loading…
Reference in new issue