Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 1, 2023
1 parent ca338f9 commit cc4d9e7
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ jobs:

- name: Run tests
run: |
python -m pytest -vv tests
python -m pytest -vv tests --reruns 3 --reruns-delay 30 --only-rerun "(?i)http|timeout|connection|socket|resolve"
22 changes: 22 additions & 0 deletions .github/workflows/semantic-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint PR

on:
pull_request:
types:
- opened
- edited
- synchronize
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Geant4 Python Application

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lobis/geant4-python-application/HEAD)
[![Build and Test](https://github.com/lobis/geant4-python-application/actions/workflows/test.yml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/test.yml)
[![Build and Test](https://github.com/lobis/geant4-python-application/actions/workflows/build-test.yml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/test.yml)
[![Docker Image](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yml/badge.svg)](https://github.com/lobis/geant4-python-application/actions/workflows/docker.yml)

```python
Expand Down
2 changes: 0 additions & 2 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ def test_imports():
assert geant4_python_application.Application
assert geant4_python_application.PrimaryGeneratorAction
assert geant4_python_application.StackingAction
assert geant4_python_application.__doc__
assert geant4_python_application.__version__


def test_setup_and_run():
Expand Down
7 changes: 5 additions & 2 deletions tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import geant4_python_application


def test_versions():
def test_imports():
assert geant4_python_application.__doc__
assert geant4_python_application.__version__
awkward_version = geant4_python_application.__awkward_version__
assert awkward_version
pybind11_version = geant4_python_application.__pybind11_version__
Expand All @@ -19,5 +21,6 @@ def test_geant4_config():
assert geant4_config.exists()
assert geant4_config.is_file()

geant4_python_application.check_datasets()
assert geant4_python_application.check_datasets()
print(geant4_python_application.datasets())
geant4_python_application.install_datasets()

0 comments on commit cc4d9e7

Please sign in to comment.