From 18b17739df1e9b685adb149795418e91e16c8098 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 19 Aug 2026 15:40:31 +0200 Subject: [PATCH 1/5] Modernize testing suite --- .github/workflows/obo-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/obo-test.yml b/.github/workflows/obo-test.yml index 3dc2d810f..7507d30b2 100644 --- a/.github/workflows/obo-test.yml +++ b/.github/workflows/obo-test.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-python@v6 with: - python-version: '3.9' + python-version: '3.14' - name: Install requirements run: | python3 -m pip install -r requirements.txt From bca227b1e65a36dbec60ab8d602595398b24cc3c Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 19 Aug 2026 15:47:41 +0200 Subject: [PATCH 2/5] Update workflows --- .github/workflows/build.yml | 8 +++++--- .github/workflows/obo-test.yml | 8 +++++--- .github/workflows/qa.yml | 14 +++++++------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3747fa14e..fce273735 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,25 +15,27 @@ jobs: runs-on: ubuntu-latest container: obolibrary/odkfull:v1.2.30 steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - name: "Install uv" - uses: "astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57" # v8.0.0 + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 - name: Create local changes run: | python -m pip install -r requirements.txt make + - name: Commit files run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "🚀 Automatically rebuilt derived files" -a + - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: commit-message: Update OBO foundry metadata title: 'Update OBO foundry metadata' diff --git a/.github/workflows/obo-test.yml b/.github/workflows/obo-test.yml index 7507d30b2..5479d3733 100644 --- a/.github/workflows/obo-test.yml +++ b/.github/workflows/obo-test.yml @@ -13,17 +13,19 @@ jobs: runs-on: ubuntu-latest if: github.triggering_actor != 'github-actions[bot]' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: "Install uv" - uses: "astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57" # v8.0.0 + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.14' + - name: Install requirements run: | python3 -m pip install -r requirements.txt + - name: Run tests run: | make test diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 9007d0564..6fc826d20 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -7,18 +7,18 @@ jobs: name: Lint runs-on: ubuntu-latest if: github.triggering_actor != 'github-actions[bot]' - strategy: - matrix: - python-version: [ "3.8", "3.10" ] steps: - - uses: actions/checkout@v7 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: ${{ matrix.python-version }} + python-version: 3.14 + - name: Install dependencies run: | pip install --upgrade pip setuptools wheel pip install "tox<4.0.0" + - name: Check code quality with flake8 run: tox -e flake8 From d4620aaaa733c7f398834ac92017e2d865f4e932 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 19 Aug 2026 15:50:43 +0200 Subject: [PATCH 3/5] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 63a86d88c..304f07603 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pyyaml==5.4 +pyyaml==6.0.3 jsonschema==3.0.2 SPARQLWrapper requests==2.31.0 From 7a65c2e29fe09d972ee39d8c9ad161a59cbf24a5 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 19 Aug 2026 15:56:03 +0200 Subject: [PATCH 4/5] Update tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 6fc814e46..4f8831fff 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ description = Run the new-style tests [testenv:flake8] skip_install = true deps = - flake8<5.0.0 + flake8<6.0.0 flake8-docstrings black==24.8.0 flake8-black From be96cb5fe7e7354d70d7ca8ab0f9dc02a0f71d4e Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Wed, 19 Aug 2026 16:20:29 +0200 Subject: [PATCH 5/5] Update tox.ini --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 4f8831fff..7c7b577f1 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ description = Run the new-style tests [testenv:flake8] skip_install = true deps = - flake8<6.0.0 + flake8 flake8-docstrings black==24.8.0 flake8-black @@ -37,7 +37,7 @@ description = Run the flake8 code quality checks [testenv:lint] usedevelop = true deps = - black + black==24.8.0 isort pyyaml commands =