Skip to content

Commit

Permalink
Ajout tests unitaires
Browse files Browse the repository at this point in the history
  • Loading branch information
jgobeill committed Apr 11, 2024
1 parent dbba3b1 commit 7feb9e7
Show file tree
Hide file tree
Showing 13 changed files with 199,593 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Tests

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
tests:
name: "Tests"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: eifinger/setup-rye@v2
id: install-rye
- name: "Install dependencies"
run: "rye sync"
- name: "Exécute les tests sans les benchmarks"
run: "rye run pytest tests"
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []
dev-dependencies = [
"pytest>=8.1.1",
]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/sibils2bioc"]
packages = ["src/sibils2bioc"]
19 changes: 19 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false

-e file:.
colorama==0.4.6
# via pytest
iniconfig==2.0.0
# via pytest
packaging==24.0
# via pytest
pluggy==1.4.0
# via pytest
pytest==8.1.1
10 changes: 10 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false

-e file:.
Loading

0 comments on commit 7feb9e7

Please sign in to comment.