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 1 commit
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
44 changes: 42 additions & 2 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,10 +44,10 @@ 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 }}

Expand Down Expand Up @@ -73,3 +76,40 @@ 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: Install truststore
working-directory: '${{ github.workspace }}/pip'
run: |
# Create a virtualenv for nox and install truststore inside
python -m venv .nox/test-3.10
.nox/test-3.10/bin/python -m pip install \
${{ github.workspace }}/truststore

- 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