add examples and move loggers after imports #183
This file contains 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 | |
- pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, macos-14, ubuntu-latest] #, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: ‘2’ | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install cython | |
pip install tox tox-gh-actions | |
- name: Test generator and physics output | |
run: tox | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4.2.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml # Specify your coverage file location if needed | |
flags: unittests # Optional: Helps to tag results for more detail | |
fail_ci_if_error: false # Optional: Don't fail the CI if Codecov fails |