Skip to content

Commit

Permalink
try python action with 3.11
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Jan 26, 2024
1 parent 56ab80a commit 3c716c7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
with:
files: ./docs ./README.md

- name: Setup Environment
run: conda create --quiet --name oras pre-commit
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Lint Oras Python
run: |
sudo apt install -y python3.12-dev
export PATH="/usr/share/miniconda/bin:$PATH"
python --version
source activate oras
python3 -m pip install pre-commit
python3 -m pip install black
make develop
make lint
Expand All @@ -32,16 +33,15 @@ jobs:
- 5000:5000
steps:
- uses: actions/checkout@v3
- name: Setup Environment
run: conda create --quiet --name oras requests
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- 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

0 comments on commit 3c716c7

Please sign in to comment.