diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d0d0f50 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + # Update specifications' submodules + # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference + - package-ecosystem: "submodules" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ff35dd3..0a0289f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v5 with: + submodules: recursive persist-credentials: false - uses: actions/setup-python@v6 with: @@ -48,6 +49,7 @@ jobs: steps: - uses: actions/checkout@v5 with: + submodules: recursive persist-credentials: false - name: Use Python ${{ matrix.python-version }} uses: actions/setup-python@v6 @@ -61,16 +63,10 @@ jobs: - name: Install testing dependencies run: | pip install -r requirements-test.txt - - name: Fetch test suites - run: | - git clone --depth 1 https://github.com/w3c/json-ld-api.git _json-ld-api - git clone --depth 1 https://github.com/w3c/json-ld-framing.git _json-ld-framing - git clone --depth 1 https://github.com/json-ld/normalization.git _normalization - name: Test with Python=${{ matrix.python-version }} Loader=${{ matrix.loader }} run: | - python tests/runtests.py ./_json-ld-api/tests -l ${{ matrix.loader }} - python tests/runtests.py ./_json-ld-framing/tests -l ${{ matrix.loader }} - python tests/runtests.py ./_normalization/tests -l ${{ matrix.loader }} + python tests/runtests.py ./specifications/json-ld-api/tests -l ${{ matrix.loader }} + python tests/runtests.py ./specifications/json-ld-framing/tests -l ${{ matrix.loader }} env: LOADER: ${{ matrix.loader }} #coverage: diff --git a/.gitignore b/.gitignore index 022ac42..60a6351 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ lib/PyLD.egg-info profiler tests/test_caching.py tests/data/test_caching.json + +# Local version file for pyenv +.python-version diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..29eae86 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "specifications/json-ld-api"] + path = specifications/json-ld-api + url = https://github.com/w3c/json-ld-api.git +[submodule "specifications/json-ld-framing"] + path = specifications/json-ld-framing + url = https://github.com/w3c/json-ld-framing.git diff --git a/specifications/json-ld-api b/specifications/json-ld-api new file mode 160000 index 0000000..590f78d --- /dev/null +++ b/specifications/json-ld-api @@ -0,0 +1 @@ +Subproject commit 590f78d171c45898ddaf6f8bd660a0567f4c7e5c diff --git a/specifications/json-ld-framing b/specifications/json-ld-framing new file mode 160000 index 0000000..fa22874 --- /dev/null +++ b/specifications/json-ld-framing @@ -0,0 +1 @@ +Subproject commit fa228743e890499c35bc61aabf01e44cf5bbc3bc