Removing the additional duplicate sub-directory from sanitize_path() #236
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: Oras Python Tests | |
on: | |
pull_request: [] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check Spelling | |
uses: crate-ci/typos@7ad296c72fa8265059cc03d1eda562fbdfcd6df2 # v1.9.0 | |
with: | |
files: ./docs ./README.md | |
- name: Setup Environment | |
run: conda create --quiet --name oras pre-commit | |
- name: Lint Oras Python | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate oras | |
make develop | |
make lint | |
test-oras-py: | |
runs-on: ubuntu-latest | |
services: | |
registry: | |
image: ghcr.io/oras-project/registry:latest | |
ports: | |
- 5000:5000 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
run: conda create --quiet --name oras requests | |
- name: Test Oras Python | |
env: | |
registry_host: localhost | |
registry_port: ${{ job.services.registry.ports[5000] }} | |
REGISTRY_STORAGE_DELETE_ENABLED: "true" | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate oras | |
pip install --upgrade pip setuptools | |
make install | |
make test |