From 320583ccc4544e564bd33bf2f88c4295b1c98537 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 7 Feb 2025 06:36:32 -0500 Subject: [PATCH 1/3] Remove unused workflow files These seem to have been copied during initial setup, but were never used. --- .github/.github/workflows/lighthouse.yml | 28 ----------------- .github/.github/workflows/pre-commit.yaml | 16 ---------- .github/.github/workflows/publish-pypi.yml | 35 --------------------- .github/.githubold/pull_request_template.md | 12 ------- .github/.githubold/workflows/main.yml | 12 ------- 5 files changed, 103 deletions(-) delete mode 100644 .github/.github/workflows/lighthouse.yml delete mode 100644 .github/.github/workflows/pre-commit.yaml delete mode 100644 .github/.github/workflows/publish-pypi.yml delete mode 100644 .github/.githubold/pull_request_template.md delete mode 100644 .github/.githubold/workflows/main.yml diff --git a/.github/.github/workflows/lighthouse.yml b/.github/.github/workflows/lighthouse.yml deleted file mode 100644 index a766f75..0000000 --- a/.github/.github/workflows/lighthouse.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Lighthouse -on: [push, pull_request] -jobs: - CI: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - - name: Install dask-sphinx-theme - run: | - python -m pip install --upgrade pip - python -m pip install -e . - - - name: Make example docs - run: | - cd docs - make html - - - name: Run Lighthouse against example docs build - uses: treosh/lighthouse-ci-action@v2 - with: - configPath: "./lighthouserc.json" - temporaryPublicStorage: true diff --git a/.github/.github/workflows/pre-commit.yaml b/.github/.github/workflows/pre-commit.yaml deleted file mode 100644 index 82e8821..0000000 --- a/.github/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Linting - -on: - push: - branches: main - pull_request: - branches: main - -jobs: - checks: - name: pre-commit hooks - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.0 diff --git a/.github/.github/workflows/publish-pypi.yml b/.github/.github/workflows/publish-pypi.yml deleted file mode 100644 index 78cbfe6..0000000 --- a/.github/.github/workflows/publish-pypi.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Push to PyPI - -on: - push: - tags: - - "*" - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - - name: Install mpl-sphinx-theme - run: | - python -m pip install --upgrade pip - python -m pip install -e . - - - name: Build mpl-sphinx-theme dist - run: | - python -m pip install wheel twine - python setup.py sdist bdist_wheel - - - name: Publish mpl-sphinx-theme - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_token }} diff --git a/.github/.githubold/pull_request_template.md b/.github/.githubold/pull_request_template.md deleted file mode 100644 index d55de22..0000000 --- a/.github/.githubold/pull_request_template.md +++ /dev/null @@ -1,12 +0,0 @@ -## PR Summary - - - diff --git a/.github/.githubold/workflows/main.yml b/.github/.githubold/workflows/main.yml deleted file mode 100644 index c6864b5..0000000 --- a/.github/.githubold/workflows/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -on: [status] -jobs: - circleci_artifacts_redirector_job: - runs-on: ubuntu-latest - name: Run CircleCI artifacts redirector - steps: - - name: GitHub Action step - uses: larsoner/circleci-artifacts-redirector-action@master - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - artifact-path: 0/docs/_build/html/index.html - circleci-jobs: build_docs From 87b60c1cebcb21a924961f7cba7d6ea3c0f3f959 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 14 Feb 2025 05:02:19 -0500 Subject: [PATCH 2/3] Update CircleCI config --- .circleci/config.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dcf06ca..0da512c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 orbs: - python: circleci/python@1.2.1 + python: circleci/python@3.0.0 jobs: build_docs: @@ -31,9 +31,7 @@ jobs: - run: name: Install and configure dependencies command: | - # Old version used because of gh-pages bug: - # https://github.com/tschaub/gh-pages/issues/354 - npm install -g --silent gh-pages@3.0.0 + npm install -g --silent gh-pages git config --global user.email "MatplotlibCircleBot@nomail" git config --global user.name "MatplotlibCircleBot" - add_ssh_keys: From 2522efd167ba3bf987a3bd942d07976c3a977b3f Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 14 Feb 2025 05:08:00 -0500 Subject: [PATCH 3/3] ci: Always install updated packages Everything is reloaded from the cache if `requirements.txt` doesn't change. --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0da512c..f99ba79 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,7 @@ jobs: steps: - checkout - python/install-packages: + args: --upgrade --upgrade-strategy=eager pkg-manager: pip-dist pip-dependency-file: docs/requirements.txt - run: