Skip to content

Commit

Permalink
Add tests for Python 3.7 compatible syntax
Browse files Browse the repository at this point in the history
This is to ensure that truststore can be safely vendored by pip
  • Loading branch information
sethmlarson committed Aug 21, 2023
1 parent 9f21278 commit 795d764
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -79,6 +79,19 @@ jobs:
python -m pip install nox
nox -s test
compileall:
# Run 'python -m compileall' on an old Python version
# to ensure that pip can vendor truststore successfully.
runs-on: ubuntu-latest
name: compileall
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.7"
- run: |
python -m compileall -qq -f src/truststore/
integration-pip:
runs-on: ubuntu-latest
name: Integration pip
Expand Down Expand Up @@ -112,3 +125,9 @@ jobs:
nox -s test-3.11 -- \
-m integration \
tests/functional/test_truststore.py
- name: Run pip debug
working-directory: "${{ github.workspace }}/pip"
run: |
python -m pip install -e .
python -m pip debug
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -21,7 +21,7 @@ def format(session):
session.run("black", *SOURCE_PATHS)
session.run("isort", "--profile=black", *SOURCE_PATHS)
session.run(
"pyupgrade", "--py310-plus", "--exit-zero-even-if-changed", *SOURCE_FILES
"pyupgrade", "--py37-plus", "--exit-zero-even-if-changed", *SOURCE_FILES
)

lint(session)
Expand Down

0 comments on commit 795d764

Please sign in to comment.