Remove unused nlte properties #854
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| - labeled | |
| workflow_call: | |
| workflow_dispatch: | |
| env: | |
| CACHE_NUMBER: 0 # increase to reset cache manually | |
| PYTEST_FLAGS: --cov=stardis --cov-report=xml --cov-report=html --stardis-regression-data=${{ github.workspace }}/stardis-regression-data | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| lfs-cache: | |
| uses: ./.github/workflows/lfs-cache.yml | |
| with: | |
| regression-data-repo: tardis-sn/stardis-regression-data | |
| allow_lfs_pull: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'git-lfs-pull') }} | |
| atom-data-cache: | |
| uses: ./.github/workflows/lfs-cache.yml | |
| with: | |
| atom-data-sparse: true | |
| regression-data-repo: tardis-sn/tardis-regression-data | |
| allow_lfs_pull: true | |
| build: | |
| needs: [lfs-cache, atom-data-cache] | |
| if: github.repository_owner == 'tardis-sn' | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| label: linux-64 | |
| prefix: /usr/share/miniconda3/envs/stardis | |
| - os: macos-latest | |
| label: osx-64 | |
| prefix: /Users/runner/miniconda3/envs/stardis | |
| name: ${{ matrix.label }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup LFS | |
| uses: ./.github/actions/setup_lfs | |
| - name: Setup STARDIS | |
| uses: ./.github/actions/setup_env | |
| with: | |
| os-label: ${{ matrix.label }} | |
| - name: Install TARDIS | |
| id: install-tardis | |
| run: | | |
| pip install git+https://github.com/tardis-sn/tardis.git@release-2026.07.26 | |
| - name: Install STARDIS | |
| id: install-stardis | |
| run: | | |
| pip install -e .[test] | |
| - name: Setup atom data | |
| uses: ./.github/actions/setup_lfs | |
| with: | |
| atom-data-sparse: true | |
| regression-data-repo: tardis-sn/tardis-regression-data | |
| - name: Copy atom data | |
| run: | | |
| mkdir -p ~/Downloads/tardis-data | |
| cp ./tardis-regression-data/atom_data/kurucz_cd23_chianti_H_He_latest.h5 ~/Downloads/tardis-data/ | |
| - name: Run tests | |
| run: pytest ${{ env.PYTEST_FLAGS }} | |
| - name: Upload to Codecov | |
| run: bash <(curl -s https://codecov.io/bash) |