Skip to content
Merged
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
40 changes: 40 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test with Ubuntu

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Set up Python from Miniconda/conda
uses: conda-incubator/[email protected]
with:
miniconda-version: latest
channels: conda-forge,defaults
channel-priority: true
activate-environment: anaconda-client-env
python-version: ${{ matrix.python-version }}
- name: Install conda dependencies
run: |
printenv
conda install -y -c conda-forge python=${{ matrix.python-version }} "numpy>=1.26" scipy pytest pytest-cov coverage
- name: Install larixite and dependencies with pip
run: |
pip install ".[dev,test,doc]"
- name: Run test suite
run: |
cd tests
python -m pytest --cov=./ --cov-report=xml
4 changes: 2 additions & 2 deletions tests/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from larixite.utils import get_logger

logger = get_logger("larixite.test")
testdir = Path().cwd() / "tests"
structsdir = testdir / "structs"

structsdir = Path(__file__).parent / "structs"

test_structures = ( # filename_in_structsdir, absorber_str, absorber_index, occupancy
("CuO6_D4h.xyz", "Cu", 0, 1),
Expand Down
Loading