Skip to content

Commit dd264f1

Browse files
authored
chore: update ci pipeline to include python 3.12 in tests (#217)
1 parent 25b2d02 commit dd264f1

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
python-version: [3.8, 3.9, "3.10", "3.11"]
16+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
1717
runs-on: ${{ matrix.os }}
1818
steps:
1919
- name: Clone Repository

.github/workflows/deploy-docs.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,35 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/setup-python@v5
11-
- uses: actions/checkout@master
12-
with:
13-
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
14-
- name: Install Dependencies
15-
run: |
16-
python -m pip install --upgrade pip
17-
pip install poetry
18-
poetry config virtualenvs.create false
19-
poetry install
20-
- name: Build and Commit
21-
uses: sphinx-notes/pages@v3
22-
- name: Push changes
23-
uses: ad-m/github-push-action@master
24-
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
branch: gh-pages
10+
- name: Clone Repository
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Install poetry
21+
uses: abatilo/actions-poetry@v2
22+
23+
- name: Setup a local virtual environment (if no poetry.toml file)
24+
run: |
25+
poetry config virtualenvs.create true --local
26+
poetry config virtualenvs.in-project true --local
27+
- uses: actions/cache@v3
28+
name: Define a cache for the virtual environment based on the dependencies lock file
29+
with:
30+
path: ./.venv
31+
key: venv-${{ hashFiles('poetry.lock') }}
32+
33+
- name: Install Dependencies
34+
run: poetry install
35+
- name: Build and Commit
36+
uses: sphinx-notes/pages@v3
37+
- name: Push changes
38+
uses: ad-m/github-push-action@master
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
branch: gh-pages

0 commit comments

Comments
 (0)