Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/main.yml
  • Loading branch information
jaraco committed Dec 1, 2023
2 parents 353c3df + 33dd012 commit 7e6c46d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 36 deletions.
51 changes: 16 additions & 35 deletions .github/workflows/main.yml
Expand Up @@ -37,65 +37,47 @@ jobs:
- python: "3.10"
platform: ubuntu-latest
# disabled for #463
# - python: pypy3.9
# - python: pypy3.10
# platform: ubuntu-latest
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.python == '3.12' }}
continue-on-error: ${{ matrix.python == '3.13' }}
steps:
- uses: actions/checkout@v3
with:
# fetch all branches and tags (to get tags for versioning)
# ref actions/checkout#448
fetch-depth: 0
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install tox
run: |
python -m pip install tox
run: python -m pip install tox
- name: Run
run: tox

diffcov:
collateral:
strategy:
fail-fast: false
matrix:
job: [diffcov, docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install tox
run: |
python -m pip install tox
- name: Evaluate coverage
run: tox
env:
TOXENV: diffcov

docs:
runs-on: ubuntu-latest
env:
TOXENV: docs
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: Install tox
run: |
python -m pip install tox
- name: Run
run: tox
run: python -m pip install tox
- name: Eval ${{ matrix.job }}
run: tox -e ${{ matrix.job }}

check: # This job does nothing and is only used for the branch protection
if: always()

needs:
- test
- docs
- collateral

runs-on: ubuntu-latest

Expand All @@ -114,14 +96,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install tox
run: |
python -m pip install tox
run: python -m pip install tox
- name: Run
run: tox -e release
env:
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Expand Up @@ -24,4 +24,7 @@ filterwarnings=
# pypa/build#615
ignore:'encoding' argument not specified::build.env

# dateutil/dateutil#1284
ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz

## end upstream
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -28,7 +28,9 @@ extras =
changedir = docs
commands =
python -m sphinx -W --keep-going . {toxinidir}/build/html
python -m sphinxlint
python -m sphinxlint \
# workaround for sphinx-contrib/sphinx-lint#83
--jobs 1

[testenv:finalize]
description = assemble changelog and tag a release
Expand Down

0 comments on commit 7e6c46d

Please sign in to comment.