core: add E2E for Zot registry #10
Workflow file for this run
This file contains 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
name: E2E testing | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
e2e-distribution-registry: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Start Kind Cluster | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: kind | |
- name: Start distribution-registry | |
run: | | |
./e2e/deploy_distribution_registry.sh | |
- name: Run tests | |
run: | | |
poetry run pytest --e2e -s -x | |
e2e-zot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Start Kind Cluster | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: kind | |
- name: Start Zot | |
run: | | |
./e2e/deploy_zot.sh | |
- name: Run tests | |
run: | | |
poetry run pytest --e2e -s -x |