diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 86cdbdd4f..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: docs -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - docs: - name: ${{ 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/ diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index ee3d97c2c..000000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: pylint -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - 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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ac31732fc..e5227713c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 @@ -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/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 439c33583..a444435d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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] @@ -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 @@ -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