Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get tests working on github #20

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug -**
1. A clear and concise description of what the bug is.
2. Include the full Traceback of the error.

**To reproduce -**
1. Include a simple, standalone code snippet that demonstrates the issue.
2. If relevant, provide the input parameters for the frank fit (or attach the .json parameter file).

**Expected behavior -**
A clear and concise description of what you expected to happen.

**Your setup -**
- Code version
- Compiler
- Operating system

**Additional context -**
Add any other context about the problem (e.g., any peculiarity of the data or of the problem you're trying to solve?).
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for frank
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe -**
A clear and concise description of what the problem is.

**Describe the solution you'd like -**
A description of what you want to happen.

**Describe alternatives you've considered -**
A description of any alternative solutions or features you've considered.

**Additional context -**
Add any other context or screenshots about the feature request.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: tests

# Run this workflow for every commit
on: push

jobs:
test:
name: Run tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install test dependencies
run: |
pip install numpy pytest

- name: Install code dependencies
run: |
sudo apt-get install -y libgsl-dev libeigen3-dev

- name: Build tests
run: make -j tests

- name: Run the code tests
run: |
./tests > /dev/null

- name: Check the results
run: |
cd test_files
mkdir -p test-reports
py.test -v --junitxml=test-reports/junit.xml .
Loading