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

Add test for 3.7 compatible syntax #108

Merged
merged 2 commits into from
Aug 21, 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
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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
sethmlarson marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
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
Loading