Skip to content

Merge pull request #157 from Spin-Chemistry-Labs/131-move-anisotropy-… #33

Merge pull request #157 from Spin-Chemistry-Labs/131-move-anisotropy-…

Merge pull request #157 from Spin-Chemistry-Labs/131-move-anisotropy-… #33

Workflow file for this run

name: Run tests
on: push
jobs:
run-radicalpy-tests:
strategy:
matrix:
python: ["3.10", "3.11"]
os: [ubuntu-latest, windows-latest]
name: Run test for RadicalPy
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python }} 🐍
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install packages 📦
run: >-
python -m
pip install -r requirements.txt
- name: Run tests
run: >-
python -m
unittest
discover -v
- name: Run examples
if: runner.os == 'Linux'
# This is bash.
# Need a separate branch to iterate over files on Windows.
run: >-
for file in $(ls examples/*.py); do
echo "Running example: $file"
PYTHONPATH=. python $file --fast
done