Skip to content

Commit

Permalink
Merge pull request #1 from fusion-energy/adding_ci
Browse files Browse the repository at this point in the history
adding ci
  • Loading branch information
shimwell authored Oct 21, 2024
2 parents 8936f65 + f43bae1 commit 6661f4e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI testing

on:
pull_request:
branches:
- develop
- main
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"] # TODO retry with latest python, "3.13"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: install package
run: |
python -m pip install --upgrade pip
python -m pip install .[tests]
- name: Run tests
run: pytest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CI testing](https://github.com/fusion-energy/fusion_neutron_utils/actions/workflows/ci.yml/badge.svg)](https://github.com/fusion-energy/fusion_neutron_utils/actions/workflows/ci.yml)

A package for calculating neutron properties from DT and DD fusion reactions.

This package accurately calculates the neutron energies and distributions by accounting for the plasma temperature.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dynamic = ["version"]
features = ["pyo3/extension-module"]

[project.optional-dependencies]
test = ["pytest", "scipy==1.13.1", "NeSST"]
tests = ["pytest", "scipy==1.13.1", "NeSST"]

0 comments on commit 6661f4e

Please sign in to comment.