Skip to content

chore: trigger dependabot update check #103

chore: trigger dependabot update check

chore: trigger dependabot update check #103

name: validate-devschema-test
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 12 30 * *'
workflow_dispatch:
jobs:
test-action:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.14"
SCHEMA_FILE: "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json"
DATA_FILE: ".devcontainer/devcontainer.json"
VERBOSE: "false"
steps:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
- name: Set Up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 #v7.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry via pip
run: |
echo "::group::Install Poetry"
if [[ "$VERBOSE" == "true" ]]; then
python -m pip install --upgrade pip
python -m pip install "poetry==1.8.5"
poetry --version
else
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"
if [[ "$VERBOSE" == "true" ]]; then
poetry install --with dev
else
poetry install --with dev > /dev/null 2>&1
fi
pwd
ls
echo "::endgroup::"
shell: bash
- name: Set Verbose Mode
run: |
echo "::group::Set Verbose Mode"
if [[ "$VERBOSE" == "true" ]]; then
echo "Verbose mode enabled."
else
echo "Verbose mode disabled."
fi
echo "::endgroup::"
shell: bash
- name: Validate DevContainer JSON Schema
run: |
echo "::group::Validate JSON Schema"
poetry run python -m src.validate_devschema.main \
--schema "$SCHEMA_FILE" \
--data "$DATA_FILE" \
$([[ "$VERBOSE" == "true" ]] && echo "--verbose")
echo "::endgroup::"
shell: bash