Skip to content

Commit

Permalink
Merge branch 'main' into ci/minimum-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrako authored Oct 10, 2023
2 parents 32b4e61 + 6e43d0d commit e0c9c2d
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 71 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/docs.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/pylint.yml

This file was deleted.

56 changes: 55 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
name: ${{ matrix.tox_env }} / ${{ matrix.os }}
name: test ${{ matrix.tox_env }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg
Expand Down Expand Up @@ -53,6 +53,25 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

pylint:
name: pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install base python for tox
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install tox
run: python -m pip install tox
- name: Setup test environment
run: tox -vv --notest -e pylint
- name: Run test
run: tox --skip-pkg-install -e pylint


minimum-requirements:
name: check minimum requirements
runs-on: ubuntu-latest
Expand All @@ -74,3 +93,38 @@ jobs:
run: MIN_REQ=1 tox -vv --notest -e py39
- name: Run test
run: MIN_REQ=1 tox --skip-pkg-install -e py39


docs:
name: docs (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'
- name: Install base python for tox
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install tox
run: python -m pip install tox
- name: Setup test environment
run: tox -vv --notest -e docs
- name: Run test
run: tox --skip-pkg-install -e docs
- name: Upload documentation
uses: actions/upload-artifact@v3
with:
name: html-docs-${{ matrix.os }}
path: docs/build/
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py39-plus]
Expand All @@ -32,7 +32,7 @@ repos:
exclude: __init__.py
args: [--application-directories=src, --add-import, 'from __future__ import annotations']
- repo: https://github.com/datarootsio/databooks
rev: 1.3.9
rev: 1.3.10
hooks:
- id: databooks-meta
args: [--cell-fields-keep=id]
Expand Down Expand Up @@ -70,7 +70,7 @@ repos:
- id: mypy
additional_dependencies: [types-all, pandas-stubs, types-tqdm]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-builtin-literals
- id: check-case-conflict
Expand Down Expand Up @@ -114,7 +114,7 @@ repos:
'--ignore=D103,D213',
]
- repo: https://github.com/PyCQA/pylint
rev: v3.0.0
rev: v3.0.1
hooks:
- id: pylint
name: pylint
Expand Down

0 comments on commit e0c9c2d

Please sign in to comment.