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 integration tests for pip #60

Merged
merged 2 commits into from
Jul 3, 2022
Merged
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
43 changes: 40 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ defaults:
run:
shell: bash

env:
FORCE_COLOR: "1"

jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,18 +44,18 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.x

- name: Install mkcert on macOS
if: runner.os == 'macOS'
run: |
Expand All @@ -73,3 +76,37 @@ jobs:
run: |
python -m pip install nox
nox -s test

integration-pip:
runs-on: ubuntu-latest
name: Integration pip
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: truststore

- name: Checkout pypa/pip
uses: actions/checkout@v3
with:
repository: pypa/pip
path: pip

- name: Setup Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Patch tests to install local copy of truststore
working-directory: "${{ github.workspace }}/pip"
run: |
sed -i 's|script.pip("install", "truststore")|script.pip("install", "${{ github.workspace }}/truststore")|' tests/functional/test_truststore.py

- name: Run tests
working-directory: "${{ github.workspace }}/pip"
run: |
python -m pip install nox
nox -s test-3.10 -- \
-m integration \
tests/functional/test_truststore.py