Skip to content

Commit 647496e

Browse files
committed
Merge branch 'restructure' into knowledge-graph-export
2 parents 822575a + a227607 commit 647496e

File tree

240 files changed

+16903
-15662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+16903
-15662
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 137 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -6,223 +6,182 @@ on:
66
jobs:
77
python-build:
88
name: πŸ—οΈ Build Python wheels
9-
strategy:
10-
matrix:
11-
python:
12-
- '3.13'
139
runs-on: ubuntu-latest
1410
steps:
15-
- name: πŸ“₯ Check-out
16-
uses: actions/checkout@v4
17-
- name: 🧰 Install Python
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: ${{ matrix.python }}
21-
cache: pip
22-
cache-dependency-path: pyproject.toml
23-
- name: 🧰 Install dependencies
24-
run: pip install build twine
25-
- name: πŸ—οΈ Build Python wheels
26-
run: python -m build
27-
- name: πŸ§ͺ Check package bundles
28-
run: twine check dist/*
29-
- name: πŸ“€ Upload Python wheels
30-
uses: actions/upload-artifact@v4
31-
if: matrix.python == '3.13'
32-
with:
33-
name: wheels
34-
path: dist
11+
- name: πŸ“₯ Check-out
12+
uses: actions/checkout@v5
13+
- name: 🧰 Install Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.13"
17+
cache: pip
18+
cache-dependency-path: pyproject.toml
19+
- name: 🧰 Install dependencies
20+
run: pip install build twine
21+
- name: πŸ—οΈ Build Python wheels
22+
run: python -m build
23+
- name: πŸ§ͺ Check package bundles
24+
run: twine check dist/*
25+
- name: πŸ“€ Upload Python wheels
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: wheels
29+
path: dist
3530
python-code-check:
3631
name: πŸ” Check Python code
37-
strategy:
38-
matrix:
39-
python:
40-
- '3.13'
4132
runs-on: ubuntu-latest
4233
steps:
43-
- name: πŸ“₯ Check-out
44-
uses: actions/checkout@v4
45-
- name: 🧰 Install Python
46-
uses: actions/setup-python@v5
47-
with:
48-
python-version: ${{ matrix.python }}
49-
cache: pip
50-
cache-dependency-path: pyproject.toml
51-
- name: 🧰 Install dependencies
52-
run: pip install .[tests]
53-
- name: πŸ” Check Python code
54-
run: ruff check .
34+
- name: πŸ“₯ Check-out
35+
uses: actions/checkout@v5
36+
- name: 🧰 Install Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.13"
40+
cache: pip
41+
cache-dependency-path: pyproject.toml
42+
- name: 🧰 Install dependencies
43+
run: pip install .[tests]
44+
- name: πŸ” Check Python code
45+
run: ruff check .
5546
python-typing:
5647
name: πŸ” Check Python static typing
57-
strategy:
58-
matrix:
59-
python:
60-
- '3.13'
6148
runs-on: ubuntu-latest
6249
steps:
63-
- name: πŸ“₯ Check-out
64-
uses: actions/checkout@v4
65-
- name: 🧰 Install Python
66-
uses: actions/setup-python@v5
67-
with:
68-
python-version: ${{ matrix.python }}
69-
cache: pip
70-
cache-dependency-path: pyproject.toml
71-
- name: 🧰 Install dependencies
72-
run: pip install .[tests]
73-
- name: πŸ” Check Python static typing
74-
run: mypy .
75-
python-security:
76-
name: πŸ” Check Python code security
77-
strategy:
78-
matrix:
79-
python:
80-
- '3.13'
81-
runs-on: ubuntu-latest
82-
steps:
83-
- name: πŸ“₯ Check-out
84-
uses: actions/checkout@v4
85-
- name: 🧰 Install Python
86-
uses: actions/setup-python@v5
87-
with:
88-
python-version: ${{ matrix.python }}
89-
cache: pip
90-
cache-dependency-path: pyproject.toml
91-
- name: 🧰 Install dependencies
92-
run: pip install .[tests]
93-
- name: πŸ” Check Python code security
94-
run: bandit -c pyproject.toml -r .
50+
- name: πŸ“₯ Check-out
51+
uses: actions/checkout@v5
52+
- name: 🧰 Install Python
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: "3.13"
56+
cache: pip
57+
cache-dependency-path: pyproject.toml
58+
- name: 🧰 Install dependencies
59+
run: pip install .[tests]
60+
- name: πŸ” Check Python static typing
61+
run: mypy .
9562
python-test:
9663
name: πŸ§ͺ Test Python code
97-
strategy:
98-
matrix:
99-
python:
100-
- '3.13'
10164
runs-on: ubuntu-latest
10265
steps:
103-
- name: πŸ“₯ Check-out
104-
uses: actions/checkout@v4
105-
- name: 🧰 Install Python
106-
uses: actions/setup-python@v5
107-
with:
108-
python-version: ${{ matrix.python }}
109-
cache: pip
110-
cache-dependency-path: pyproject.toml
111-
- name: 🧰 Install dependencies
112-
run: pip install .[tests]
113-
- name: πŸ§ͺ Test Python code
114-
run: pytest --cov --cov-report=xml archive_query_log
115-
- name: πŸ“€ Upload coverage to Codecov
116-
uses: codecov/codecov-action@v5
117-
if: matrix.python == '3.13'
118-
with:
119-
token: ${{ secrets.CODECOV_TOKEN }}
66+
- name: πŸ“₯ Check-out
67+
uses: actions/checkout@v5
68+
- name: 🧰 Install Python
69+
uses: actions/setup-python@v5
70+
with:
71+
python-version: "3.13"
72+
cache: pip
73+
cache-dependency-path: pyproject.toml
74+
- name: 🧰 Install dependencies
75+
run: pip install .[tests]
76+
- name: πŸ§ͺ Test Python code
77+
run: pytest --cov --cov-report=xml .
78+
- name: πŸ“€ Upload coverage to Codecov
79+
uses: codecov/codecov-action@v5
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
12082
docker-build:
12183
name: πŸ—οΈ Build Docker image
12284
runs-on: ubuntu-latest
12385
steps:
124-
- name: πŸ“₯ Check-out
125-
uses: actions/checkout@v4
126-
- name: 🧰 Set up QEMU
127-
uses: docker/setup-qemu-action@v3
128-
- name: 🧰 Set up Docker Buildx
129-
uses: docker/setup-buildx-action@v3
130-
- name: πŸ—οΈ Build Docker image
131-
uses: docker/build-push-action@v6
132-
with:
133-
context: .
134-
push: false
86+
- name: πŸ“₯ Check-out
87+
uses: actions/checkout@v5
88+
- name: 🧰 Set up QEMU
89+
uses: docker/setup-qemu-action@v3
90+
- name: 🧰 Set up Docker Buildx
91+
uses: docker/setup-buildx-action@v3
92+
- name: πŸ—οΈ Build Docker image
93+
uses: docker/build-push-action@v6
94+
with:
95+
context: .
96+
push: false
13597
python-publish:
13698
name: πŸš€ Publish Python wheels
13799
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
138100
needs:
139-
- python-build
140-
- python-code-check
141-
- python-typing
142-
- python-security
143-
- python-test
144-
- docker-build
101+
- python-build
102+
- python-code-check
103+
- python-typing
104+
- python-test
105+
- docker-build
145106
runs-on: ubuntu-latest
146107
permissions:
147108
id-token: write
148109
steps:
149-
- name: πŸ“₯ Check-out
150-
uses: actions/checkout@v4
151-
- name: πŸ“₯ Download Python wheels
152-
uses: actions/download-artifact@v4
153-
with:
154-
name: wheels
155-
path: dist
156-
- name: πŸš€ Publish Python wheels
157-
uses: pypa/gh-action-pypi-publish@release/v1
110+
- name: πŸ“₯ Check-out
111+
uses: actions/checkout@v5
112+
- name: πŸ“₯ Download Python wheels
113+
uses: actions/download-artifact@v5
114+
with:
115+
name: wheels
116+
path: dist
117+
- name: πŸš€ Publish Python wheels
118+
uses: pypa/gh-action-pypi-publish@release/v1
158119
docker-publish:
159120
name: πŸš€ Publish Docker image
160121
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
161122
permissions:
162123
packages: write
163124
needs:
164-
- python-build
165-
- python-code-check
166-
- python-typing
167-
- python-security
168-
- python-test
169-
- docker-build
125+
- python-build
126+
- python-code-check
127+
- python-typing
128+
- python-test
129+
- docker-build
170130
runs-on: ubuntu-latest
171131
steps:
172-
- name: πŸ“₯ Check-out
173-
uses: actions/checkout@v4
174-
- name: 🧰 Set up QEMU
175-
uses: docker/setup-qemu-action@v3
176-
- name: 🧰 Set up Docker Buildx
177-
uses: docker/setup-buildx-action@v3
178-
- name: πŸ”‘ Login to GitHub Packages
179-
uses: docker/login-action@v3
180-
with:
181-
registry: ghcr.io
182-
username: ${{ github.actor }}
183-
password: ${{ secrets.GITHUB_TOKEN }}
184-
- name: ℹ️ Extract image metadata
185-
id: meta
186-
uses: docker/metadata-action@v5
187-
with:
188-
images: |
189-
ghcr.io/${{ github.repository }}
190-
- name: πŸš€ Build and push image
191-
uses: docker/build-push-action@v6
192-
with:
193-
context: .
194-
push: true
195-
tags: ${{ steps.meta.outputs.tags }}
196-
labels: ${{ steps.meta.outputs.labels }}
132+
- name: πŸ“₯ Check-out
133+
uses: actions/checkout@v5
134+
- name: 🧰 Set up QEMU
135+
uses: docker/setup-qemu-action@v3
136+
- name: 🧰 Set up Docker Buildx
137+
uses: docker/setup-buildx-action@v3
138+
- name: πŸ”‘ Login to GitHub Packages
139+
uses: docker/login-action@v3
140+
with:
141+
registry: ghcr.io
142+
username: ${{ github.actor }}
143+
password: ${{ secrets.GITHUB_TOKEN }}
144+
- name: ℹ️ Extract image metadata
145+
id: meta
146+
uses: docker/metadata-action@v5
147+
with:
148+
images: |
149+
ghcr.io/${{ github.repository }}
150+
- name: πŸš€ Build and push image
151+
uses: docker/build-push-action@v6
152+
with:
153+
context: .
154+
push: true
155+
tags: ${{ steps.meta.outputs.tags }}
156+
labels: ${{ steps.meta.outputs.labels }}
197157
github-release:
198158
name: πŸš€ Create GitHub release
199159
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
200160
needs:
201-
- python-build
202-
- python-code-check
203-
- python-typing
204-
- python-security
205-
- python-test
206-
- python-publish
207-
- docker-build
208-
- docker-publish
161+
- python-build
162+
- python-code-check
163+
- python-typing
164+
- python-test
165+
- python-publish
166+
- docker-build
167+
- docker-publish
209168
permissions:
210169
contents: write
211170
runs-on: ubuntu-latest
212171
steps:
213-
- name: πŸ“₯ Check-out
214-
uses: actions/checkout@v4
215-
- name: πŸ“₯ Download Python wheels
216-
uses: actions/download-artifact@v4
217-
with:
218-
name: wheels
219-
path: dist
220-
- name: πŸš€ Create GitHub release
221-
uses: softprops/action-gh-release@v2
222-
with:
223-
name: Release ${{ github.ref_name }}
224-
files: dist/*
225-
fail_on_unmatched_files: true
226-
draft: false
227-
prerelease: false
228-
generate_release_notes: true
172+
- name: πŸ“₯ Check-out
173+
uses: actions/checkout@v5
174+
- name: πŸ“₯ Download Python wheels
175+
uses: actions/download-artifact@v5
176+
with:
177+
name: wheels
178+
path: dist
179+
- name: πŸš€ Create GitHub release
180+
uses: softprops/action-gh-release@v2
181+
with:
182+
name: Release ${{ github.ref_name }}
183+
files: dist/*
184+
fail_on_unmatched_files: true
185+
draft: false
186+
prerelease: false
187+
generate_release_notes: true

0 commit comments

Comments
Β (0)