Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ensaremirerol committed Nov 28, 2024
1 parent 93317a5 commit 1edf502
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 165 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python Tests and Ruff

on: [push]

jobs:
uv-example:
name: python
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: 'Set up Python'
uses: actions/setup-python@v5
with:
python-version-file: '.python-version'

- name: Install dependencies
run: |
uv sync --all-extras --dev
- name: Run tests with coverage
run: |
uv run coverage run -m unittest discover -v -s ./test -p "*_test.py"
- name: Run Ruff
run: uv run ruff check --output-format=github .
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description = "A Python project for RDF crafting"
authors = [
{ name = "Ensar Emir EROL", email = "[email protected]" }
]
requires-python = "==3.12.7"

dependencies = [
"annotated-types==0.7.0",
Expand Down
Loading

0 comments on commit 1edf502

Please sign in to comment.