Split ratio check into light and heavy atoms #135
Workflow file for this run
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: Testing | |
| on: [pull_request, workflow_dispatch] | |
| permissions: | |
| contents: read | |
| jobs: | |
| testing: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Setup Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --group dev --group test | |
| - name: Test with pytest | |
| run: | | |
| mkdir -p junit | |
| uv run pytest --doctest-modules --junitxml=junit/test-results-${{ matrix.python }}.xml --cov --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11' | |
| - name: Upload pytest test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pytest-results-${{ matrix.python }}-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }} | |
| path: junit/test-results-${{ matrix.python }}.xml | |
| if: always() | |
| - name: Summary | |
| if: always() | |
| run: echo "Testing completed for Python ${{ matrix.python-version }} on Platform ${{ matrix.os }}" |