CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 23:04:18 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"eb8ff0810e8b90368024f2af1d07508d"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=7WbUX42quXZnvZwWTmxtEXOGyGR1d6BFTdAuuLRkTIoZgFN42HP%2BP845Rq0SU6o6Swk9lTrCRfKU3bx%2BnYMV%2Brl2bDhRsuxUguiy%2BTcMLFGnxKjUFlW9vbWdFf2tXKTh9Id66SW%2BaqwE64%2B4NAzHzp2fqawFpN6V4nhbhzGAGgFgk0X%2BXpKa9c%2FdCon9zNhz37FOmPn1v0zwG7zytfWSRMh2GsYkD6bDGXn5VVpXOA%2BtPKDNtd129Zdt1iRL%2FOH%2Bm9sMRTgO2Rryn4s%2FyDIvvA%3D%3D--ElscRniDKOZ15gev--ZytJ%2FnMAOebZ14O%2BLuuCNA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2019931723.1753916658; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 23:04:18 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 23:04:18 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 84CA:3BDB3D:A9E3B:FBBBE:688AA4F2
A `noxfile.py` for running matrix testing of a Python package · GitHub
Show Gist options
Save codeinthehole/f6663121c3dca9177332505989b698af to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
Created
May 24, 2024 09:33
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save codeinthehole/f6663121c3dca9177332505989b698af to your computer and use it in GitHub Desktop.
A `noxfile.py` for running matrix testing of a Python package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import nox | |
@nox.session(python=["3.10", "3.11", "3.12"]) | |
@nox.parametrize("django_constraint", ["<4.2", "<4.3", "<5.1"]) | |
def tests(session: nox.Session, django_constraint: str) -> None: | |
""" | |
Run the test suite with different Python and Django versions. | |
""" | |
# Create a constraints file with the parameterized package versions. | |
# It's easy to add more constraints here if needed. | |
with open("constraints.txt", "w") as f: | |
f.write(f"django{django_constraint}\n") | |
# Install pip tools which we need to compile a new lock file. | |
session.install("pip-tools==7.4.1") | |
# Compile a new development lock file with the additional package constraints from this | |
# session. Use a unique lock file name to avoid session pollution. | |
lockfile = f"packages.{time.time()}.txt" | |
session.run( | |
"pip-compile", | |
"--quiet", | |
"--resolver=backtracking", | |
"--strip-extras", | |
"--extra=dev", | |
"pyproject.toml", | |
"--constraint", | |
"constraints.txt", | |
"--output-file", | |
lockfile, | |
) | |
# Install the dependencies from the newly compiled lockfile and main package. | |
session.install("-r", lockfile, ".") | |
# When run in CircleCI, create JUnit XML test results. | |
commands = ["pytest"] | |
if "CIRCLECI" in os.environ: | |
commands.append(f"--junitxml=test-results/junit.{session.name}.xml") | |
session.run(*commands, *session.posargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t perform that action at this time.