Skip to content

Commit

Permalink
Update to Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Nov 28, 2023
1 parent c25f2de commit 461497a
Show file tree
Hide file tree
Showing 5 changed files with 599 additions and 473 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/continuous-deployment.yaml
Expand Up @@ -10,17 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- id: install-pipenv
name: Install pipenv
run: pipx install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- id: install-python
name: Install Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'
cache: 'pipenv'

- id: install-python-dependencies
Expand All @@ -46,20 +46,20 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: psycopg2 prerequisites
run: sudo apt-get install libpq-dev postgresql-client gdal-bin libgdal-dev

- name: Install pipenv
run: pipx install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: {{ matrix.python }}
cache: 'pipenv'

- id: pipenv-install
Expand All @@ -77,14 +77,14 @@ jobs:
needs: [test-python]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pipenv
run: pipx install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'
cache: 'pipenv'

- id: pipenv-install
Expand Down Expand Up @@ -117,9 +117,9 @@ jobs:
needs: [test-build]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.11'

- id: fetch
name: Fetch artifact
Expand Down
57 changes: 42 additions & 15 deletions .github/workflows/docs.yaml
Expand Up @@ -9,21 +9,48 @@ jobs:
name: "Build and deploy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: checkout
name: Checkout
uses: actions/checkout@v4

- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- id: setup-python
name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pipenv'

- uses: actions/upload-artifact@v1
with:
name: documentation-html
path: docs/_build/html/
- id: install-pipenv
name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash

- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.PALEWIRE_DOCS_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.PALEWIRE_DOCS_AWS_SECRET_ACCESS_KEY }}
aws_bucket: ${{ secrets.PALEWIRE_DOCS_AWS_BUCKET }}
source_dir: docs/_build/html/
destination_dir: django-anss-archive
- id: install-python-dependencies
name: Install Python dependencies
run: pipenv sync --dev
shell: bash

- id: build-sphinx-documentation
name: Build Sphinx documentation
run: pipenv run make html
shell: bash
working-directory: docs

- id: configure-aws
name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.PALEWIRE_DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PALEWIRE_DOCS_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.PALEWIRE_DOCS_AWS_REGION }}

- id: upload-to-s3
name: Upload documentation to Amazon S3
uses: datadesk/delivery-deploy-action@v1
with:
bucket: ${{ secrets.PALEWIRE_DOCS_AWS_BUCKET }}
base-path: django-anss-archive/
dir: docs/_build/html/
should-cache: false
use-accelerate-endpoint: false
public: true
2 changes: 1 addition & 1 deletion Pipfile
Expand Up @@ -17,4 +17,4 @@ myst-parser = "*"
requests = "*"

[requires]
python_version = "3.9"
python_version = "3.11"

0 comments on commit 461497a

Please sign in to comment.