Skip to content
Open
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
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/obo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.9'
python-version: '3.14'

- name: Install requirements
run: |
python3 -m pip install -r requirements.txt

- name: Run tests
run: |
make test
14 changes: 7 additions & 7 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyyaml==5.4
pyyaml==6.0.3
jsonschema==3.0.2
SPARQLWrapper
requests==2.31.0
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description = Run the new-style tests
[testenv:flake8]
skip_install = true
deps =
flake8<5.0.0
flake8
flake8-docstrings
black==24.8.0
flake8-black
Expand All @@ -37,7 +37,7 @@ description = Run the flake8 code quality checks
[testenv:lint]
usedevelop = true
deps =
black
black==24.8.0
isort
pyyaml
commands =
Expand Down