Skip to content

Commit 754c19b

Browse files
committed
Clean up CI and drop py3.7
1 parent 6a47a75 commit 754c19b

File tree

5 files changed

+31
-65
lines changed

5 files changed

+31
-65
lines changed

.circleci/config.yml

-32
This file was deleted.

.github/workflows/artifacts.yml

-12
This file was deleted.

.github/workflows/pre-commit.yml

-14
This file was deleted.

.github/workflows/tests.yml

+30-6
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,31 @@ on: [push, pull_request]
44

55
jobs:
66

7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v3
12+
- uses: pre-commit/[email protected]
13+
714
tests:
815

916
strategy:
1017
matrix:
11-
python-version: [3.7, 3.8]
18+
python-version: ["3.8", "3.11", " 3.12"]
1219
os: [ubuntu-latest]
1320
include:
1421
- os: windows-latest
15-
python-version: 3.7
22+
python-version: "3.9"
23+
- os: macos-latest
24+
python-version: "3.10"
1625

1726
runs-on: ${{ matrix.os }}
1827

1928
steps:
20-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v4
2130
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
31+
uses: actions/setup-python@v3
2332
with:
2433
python-version: ${{ matrix.python-version }}
2534

@@ -33,6 +42,21 @@ jobs:
3342
- name: Run tests
3443
run: pytest
3544

45+
docs:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: actions/setup-python@v3
50+
- name: Install dependencies
51+
run: |
52+
python -m pip install --upgrade pip
53+
pip install -r requirements.txt
54+
pip install .
55+
- name: Build docs
56+
run: |
57+
cd doc
58+
make html-strict
59+
3660
publish:
3761

3862
name: Publish to PyPi
@@ -42,10 +66,10 @@ jobs:
4266
steps:
4367
- name: Checkout source
4468
uses: actions/checkout@v2
45-
- name: Set up Python 3.7
69+
- name: Set up Python 3.8
4670
uses: actions/setup-python@v1
4771
with:
48-
python-version: 3.7
72+
python-version: 3.8
4973
- name: Build package
5074
run: |
5175
pip install wheel

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"nbconvert>=5.5",
3737
"nbformat",
3838
],
39-
python_requires=">= 3.7",
39+
python_requires=">= 3.8",
4040
package_data={"jupyter_sphinx": ["thebelab/*", "css/*"]},
4141
)

0 commit comments

Comments
 (0)