Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github Workflows for Python3.10 #192

Merged
merged 12 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy static content to Pages

on:
pull_request:
branches: [main]
push:
branches: ["main"]

workflow_dispatch:

permissions:
Expand All @@ -16,22 +17,20 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Accept Repository Changes
run: |
sudo apt-get --allow-releaseinfo-change update
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Setup Pages
uses: actions/configure-pages@v2
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: 3.10
python-version: '3.10'
jaxs-ribs marked this conversation as resolved.
Show resolved Hide resolved
architecture: x64
version: 2.10.1
prerelease: false
Expand All @@ -43,10 +42,28 @@ jobs:
- name: Build docs
run: cd docs && make deploy
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-artifact@v2
with:
name: doc-build
path: 'docs/_build/dirhtml'

deploy:
needs: build-docs
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v2
with:
# Upload entire repository
name: doc-build
path: 'docs/_build/dirhtml'
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.10
python-version: '3.10'
architecture: x64
version: 2.10.1
prerelease: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.10
python-version: '3.10'
architecture: x64
version: 2.10.1
prerelease: true
Expand Down
Loading