Skip to content

Commit

Permalink
Exclude python 3.12 from support (#293)
Browse files Browse the repository at this point in the history
* exclude python 3.12 from support

* change pygit2 version

* move cd.yaml to poetry

* prevent werkzeug from breaching 3.0.0

* update checkout and setup-python. Add 3.11 to test matrix
  • Loading branch information
TShapinsky authored Nov 1, 2023
1 parent 323fb48 commit 0c5983e
Show file tree
Hide file tree
Showing 4 changed files with 1,268 additions and 1,217 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: continuous deployment

on:
on:
pull_request:
branches:
- develop
Expand All @@ -19,11 +19,13 @@ jobs:
steps:
# setup, checkout pull_request.head.ref for repo-vis
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.11'
# # update repo visualization for docs
# - name: repo-visualizer
# uses: githubocto/[email protected]
Expand All @@ -32,8 +34,13 @@ jobs:
# excluded_paths: ".github"
# commit_message: "repo-visualizer [skip actions]"
# install project, which is required for autodoc of code
- name: install-poetry
uses: snok/install-poetry@v1
with:
version: 1.4.0
virtualenvs-create: false
- name: install buildingmotif
run: pip install .
run: poetry install --all-extras
# install jupyter-book, which for some reason isn't available with poetry install
- name: install jupyter book
run: pip install jupyter-book
Expand All @@ -47,7 +54,7 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
publish_dir: ./docs/_build/html

# deploy distribution if a new release and tag are created
deploy-dist:
Expand All @@ -57,9 +64,9 @@ jobs:
steps:
# setup
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
# install poetry and build dist
- name: install-poetry
uses: snok/install-poetry@v1
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: install-poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -30,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: setup-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install-poetry
Expand Down
Loading

0 comments on commit 0c5983e

Please sign in to comment.