Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
fail-fast: false

steps:
Expand All @@ -27,10 +27,14 @@ jobs:

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
python -m pip install --upgrade pip
python -m pip install "poetry==1.8.5"
poetry --version

- name: Install dependencies with Poetry
env:
# Needed for rpds-py builds on CPython 3.14 until upstream wheels/tooling catch up.
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
run: |
poetry install --with dev

Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/validate-schema-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,21 @@ jobs:
run: |
echo "::group::Install Poetry"
if [[ "$VERBOSE" == "true" ]]; then
pip install poetry
python -m pip install --upgrade pip
python -m pip install "poetry==1.8.5"
poetry --version
else
pip install poetry > /dev/null 2>&1
python -m pip install --upgrade pip > /dev/null 2>&1
python -m pip install "poetry==1.8.5" > /dev/null 2>&1
poetry --version > /dev/null 2>&1
fi
echo "::endgroup::"
shell: bash

- name: Configure Poetry
run: |
echo "::group::Configure Poetry"
if [[ "$VERBOSE" == "true" ]]; then
curl -sSL https://install.python-poetry.org | python -
else
curl -sSL https://install.python-poetry.org | python - > /dev/null 2>&1
fi
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
echo "::endgroup::"
shell: bash

- name: Install Dependencies with Poetry
env:
# Needed for rpds-py builds on CPython 3.14 until upstream wheels/tooling catch up.
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
run: |
echo "::group::Install Dependencies"
if [[ "$VERBOSE" == "true" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This GitHub Action validates a devcontainer.json file against a schema by first
| `schema` | Path or URL to the JSON schema. | No | `https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json` |
| `data` | Path or URL to the JSON data. | No | `devcontainer/devcontainer.json` |
| `verbose` | Enable verbose output (true/false). | No | `false` |
| `python-version` | Python version to use. Allowed versions are: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. | No | `3.14` |
| `python-version` | Python version to use. Allowed versions are: 3.10, 3.11, 3.12, 3.13, 3.14. | No | `3.14` |

## Usage

Expand Down
27 changes: 10 additions & 17 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ inputs:
python-version:
description: |
Python version to use. Must be one of the following:
- 3.9
- 3.10
- 3.11
- 3.12
Expand All @@ -33,7 +32,7 @@ runs:
- name: Validate Python Version
run: |
echo "::group::Validate Python Version"
ALLOWED_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13" "3.14")
ALLOWED_VERSIONS=("3.10" "3.11" "3.12" "3.13" "3.14")
PYTHON_VERSION="${{ inputs.python-version }}"

# Use default if input is not set
Expand All @@ -60,27 +59,21 @@ runs:
run: |
echo "::group::Install Poetry"
if [ "${{ inputs.verbose }}" = "true" ]; then
pip install poetry
python -m pip install --upgrade pip
python -m pip install "poetry==1.8.5"
poetry --version
else
pip install poetry > /dev/null 2>&1
fi
echo "::endgroup::"
shell: bash

- name: Configure Poetry
run: |
echo "::group::Configure Poetry"
if [ "${{ inputs.verbose }}" = "true" ]; then
curl -sSL https://install.python-poetry.org | python -
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
else
curl -sSL https://install.python-poetry.org | python - > /dev/null 2>&1
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
python -m pip install --upgrade pip > /dev/null 2>&1
python -m pip install "poetry==1.8.5" > /dev/null 2>&1
poetry --version > /dev/null 2>&1
fi
echo "::endgroup::"
shell: bash

- name: Install Dependencies with Poetry
env:
# Needed for rpds-py builds on CPython 3.14 until upstream wheels/tooling catch up.
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
run: |
echo "::group::Install Dependencies"
echo "Current directory:"
Expand Down
Loading