Skip to content

feature/pre commit updates #240

feature/pre commit updates

feature/pre commit updates #240

Workflow file for this run

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