Skip to content

Commit 4b4a17a

Browse files
authored
Add CI action (#1)
* Add CI action. * Add build dependencies. * Try older Ubuntu for building rdflib-hdt in tests. * Fix lint error.
1 parent 5307d13 commit 4b4a17a

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Install system dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y build-essential libz-dev
20+
21+
- name: Set up uv
22+
uses: astral-sh/setup-uv@v7
23+
with:
24+
enable-cache: true
25+
26+
- name: Install dependencies
27+
run: uv sync
28+
29+
- name: Type check
30+
run: uvx ty check
31+
32+
- name: Lint
33+
run: uv run ruff check
34+
35+
- name: Check formatting
36+
run: uv run ruff format --check
37+
38+
- name: Run tests
39+
run: uv run pytest tests/ -v

void_hdt/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from pathlib import Path
55

66
import click
7-
87
from rdflib_hdt import HDTDocument
98

109
from void_hdt.partitions import PartitionAnalyzer

void_hdt/void_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from rdflib import RDF, RDFS, Graph, Literal, Namespace, URIRef
66
from rdflib.namespace import VOID, XSD
7-
87
from rdflib_hdt import HDTDocument
98

109
from void_hdt.partitions import PartitionAnalyzer

0 commit comments

Comments
 (0)