Skip to content

Commit 20e3061

Browse files
authored
Merge pull request #39 from asmeurer/fix-ci-python-versions
Fix CI workflow to use supported Python versions and update actions
2 parents f8bc715 + 6e69e6e commit 20e3061

File tree

4 files changed

+58
-26
lines changed

4 files changed

+58
-26
lines changed

.github/workflows/docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v5
25+
- name: Set up Python
26+
uses: actions/setup-python@v6
27+
with:
28+
python-version: '3.12'
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install sphinx
33+
- name: Build documentation
34+
run: |
35+
cd docs
36+
make html
37+
- name: Upload artifact
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: 'docs/_build/html'
42+
43+
deploy:
44+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7',
12-
'pypy-3.8', '3.11.0-alpha.2']
11+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8',
12+
'pypy-3.9', 'pypy-3.10']
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v5
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install sphinx
24-
- name: Lint with pyfalkes
24+
- name: Lint with pyflakes
2525
run: |
2626
pip install pyflakes
2727
pyflakes .

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

github_deploy_key_sympy_sphinx_math_dollar.enc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)