Compare commits

...

10 Commits

Author SHA1 Message Date
347ff4c102 Add badges for Python version and CI tests
Added badges for Python version and CI tests to README.
2026-02-20 11:44:54 +01:00
0611b943a8 Merge pull request #35 from pim-n/33-add-ci-workflow-for-running-tests
33 add ci workflow for running tests
2026-02-20 11:42:15 +01:00
2d5ba0ac3c Updated config. Third test 2026-02-20 11:34:21 +01:00
81d2cd6f9e Fix indentation for checkout action in CI workflow 2026-02-20 11:30:52 +01:00
d32fd411bb Updated config. Second test 2026-02-20 11:25:51 +01:00
191c92e176 Merge branch '33-add-ci-workflow-for-running-tests' of github.com:pim-n/pg-rad into 33-add-ci-workflow-for-running-tests
Fetched changes from github. Fast-forward changes
2026-02-20 11:17:55 +01:00
8c0eeb3127 Updated config file for ci. Added dispatch 2026-02-20 11:17:36 +01:00
db86ee42b2 Updated config file for ci. Added dispatch 2026-02-20 11:16:37 +01:00
79ba5f7c83 Fix event name for pull request trigger 2026-02-20 11:00:22 +01:00
66c0b0c6cf Added ci for tests. First testing 2026-02-20 10:57:28 +01:00
4 changed files with 37 additions and 2 deletions

33
.github/workflows/ci-tests.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Tests
on:
pull_request:
branches: ["main", "dev"]
workflow_dispatch:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ '3.12' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run linting
run: |
flake8 ./src/
- name: Run tests
run: |
pytest

2
.gitignore vendored
View File

@ -176,7 +176,7 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ .idea/
# Abstra # Abstra
# Abstra is an AI-powered process automation framework. # Abstra is an AI-powered process automation framework.

View File

@ -1,3 +1,5 @@
[![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-312/)
[![Tests](https://github.com/pim-n/pg-rad/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/pim-n/pg-rad/actions/workflows/ci-tests.yml)
# pg-rad # pg-rad
Primary Gamma RADiation landscape - Development Primary Gamma RADiation landscape - Development

View File

@ -37,4 +37,4 @@ Issues = "https://github.com/pim-n/pg-rad/issues"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter"] dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter", "flake8"]