-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.32 KB
/
go-rxr-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow is designed to set up the necessary Python environment, install dependencies,
# and run the full suite of non-GUI unit tests for the GO-RXR project. It ensures that the code is
# consistently tested on Ubuntu 22.04 with Python 3.10.12. For further details, see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: GO-RXR Tests
on:
push:
branches: ["main", "version-joss-rev"]
pull_request:
branches: ["main", "version-joss-rev"]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out the code
uses: actions/checkout@v4 # Update to version 4 (compatible with Node.js 20)
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.14'
- name: Install app dependencies
run: |
pip install .
- name: Run tests
run: |
python -m unittest discover -s TESTS -p "test_data_fitting.py"
python -m unittest discover -s TESTS -p "test_data_structure.py"
python -m unittest discover -s TESTS -p "test_density.py"
python -m unittest discover -s TESTS -p "test_material_model.py"
python -m unittest discover -s TESTS -p "test_material_structure.py"
python -m unittest discover -s TESTS -p "test_reflectivity.py"