瀏覽代碼

Merge pull request #265 from takluyver/ci-2024

Update CI config for 2024
Thomas Kluyver 1 年之前
父節點
當前提交
9c34ff5b01
共有 5 個文件被更改,包括 24 次插入7 次删除
  1. 5 5
      .github/workflows/test.yml
  2. 16 0
      .readthedocs.yml
  3. 1 1
      doc/conf.py
  4. 1 0
      doc/pypi-requirements.txt
  5. 1 1
      pyproject.toml

+ 5 - 5
.github/workflows/test.yml

@@ -7,22 +7,22 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [ 3.6, 3.7, 3.8, 3.9, ]
+        python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Setup Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
 
       - name: Install dependencies
         run: |
           python -m pip install --upgrade pip
-          pip install tox tox-gh-actions codecov
+          pip install tox tox-gh-actions
 
       - name: Run tests
         run: tox -- -v
 
       - name: Codecov upload
-        run: codecov
+        uses: codecov/codecov-action@v3

+ 16 - 0
.readthedocs.yml

@@ -0,0 +1,16 @@
+# Read the Docs configuration file for Sphinx projects
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+
+version: 2
+
+build:
+  os: ubuntu-22.04
+  tools:
+    python: "3.12"
+
+sphinx:
+  configuration: doc/conf.py
+
+python:
+  install:
+    - requirements: doc/pypi-requirements.txt

+ 1 - 1
doc/conf.py

@@ -110,7 +110,7 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'default'
+html_theme = 'sphinx_rtd_theme'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the

+ 1 - 0
doc/pypi-requirements.txt

@@ -4,3 +4,4 @@ distlib
 yarg
 requests_download
 sphinxcontrib_github_alt
+sphinx-rtd-theme

+ 1 - 1
pyproject.toml

@@ -1,5 +1,5 @@
 [build-system]
-requires = ["flit_core >=3.2.0,<3.3"]
+requires = ["flit_core >=3.2.0,<4"]
 build-backend = "flit_core.buildapi"
 
 [project]