Skip to content

Commit

Permalink
Update awscli dependency; Add exceptiongroup dependency for python ol…
Browse files Browse the repository at this point in the history
…der than 3.11; Add docutils-stubs to dev dependencies; Update default pipenv version to latest; Update CI pipeline script to run tests before building and to fix a Python TZ issue
  • Loading branch information
neflyte committed Dec 27, 2023
1 parent 8c0536e commit 940dbf1
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 38 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: CI
on:
'on':
push:
branches:
- master
Expand All @@ -10,22 +11,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ci/Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-python@db9987b4c1f10f0404fa60ee629f675fafbd6763 # v4.6.0
with:
python-version: '3.9'
- name: ci/Build
run: |
make python-deps
make html
- name: ci/Persist docs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: docs
path: build/html
- name: ci/Persist doc logs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: doc-logs
path: build/*.log
- name: ci/Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-python@db9987b4c1f10f0404fa60ee629f675fafbd6763 # v4.6.0
with:
python-version: 3.9
- name: ci/Install dependencies
run: make python-deps
- name: ci/Run tests
run: TZ=UTC make test
- name: ci/Build docs
run: TZ=UTC make html
- name: ci/Persist docs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: docs
path: build/html
- name: ci/Persist doc logs artifacts
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 # v3.1.2
with:
name: doc-logs
path: build/*.log
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ endif
# Install necessary dependencies for the CI build pipeline.
# NOTE: if the version of Python used to build the docs changes, update the `pipenv` command below accordingly.
python-deps:
pip install pipenv==2023.10.24
pip install pipenv==2023.11.15
pipenv install --dev --clear --deploy --python 3.9

test:
Expand Down
8 changes: 7 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ name = "pypi"
# Amazon AWS Universal CLI environment (https://aws.amazon.com/cli/)
# Release notes: https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst
# Repo: https://github.com/aws/aws-cli
awscli = "==1.29.53"
awscli = "==1.32.8"
#
# PyTest testing framework (https://docs.pytest.org/en/7.4.x/)
pytest = "==7.4.2"
#
# exceptiongroup: Backport of PEP-654 Exception groups to Python <3.11
exceptiongroup = {version = "*", markers = "python_version < '3.11'"}
#
# Black: A Python source formatter
black = "==23.10.1"
#
# Docutils Stubs
docutils-stubs = "==0.0.22"

[packages]
#
Expand Down
49 changes: 33 additions & 16 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 940dbf1

Please sign in to comment.