Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Oct 29, 2024
1 parent 8c5b0ca commit 19ee485
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,29 @@ jobs:
# Step 4: Install System Dependencies
- name: Install Graphviz
run: sudo apt-get install -y graphviz

# Step 5: Install Rust
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

# Step 5: Install Python Dependencies using Poetry
# Step 6: Install Python Dependencies using Poetry
- name: Install dependencies
run: |
poetry install --with dev
# Step 7: Install the Rust package
- name: Build and Install the Package
run: maturin develop

# Step 6: Run Tests and Generate Coverage Report
# Step 8: Run Tests and Generate Coverage Report
- name: Run tests and coverage
run: |
poetry run pytest ./tests/ --cov=./src/pyhgf/ --cov-report=xml
# Step 7: Upload Coverage Report to Codecov
# Step 9: Upload Coverage Report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ipykernel = "^6.29.5 "
coverage = "^7.6.3"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
maturin = "^1.7.4"

[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0", "maturin>=1.4,<2.0"]
Expand Down

0 comments on commit 19ee485

Please sign in to comment.