Attach the 'use it?' field to Text output #2975
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: Test MDANSE | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: (${{ matrix.os }}-${{ matrix.python-version }}) Build MDANSE and run tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| if: ${{ !contains( github.ref, 'legacy' ) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install MDANSE | |
| working-directory: MDANSE | |
| run: python -m pip install ".[test]" | |
| - name: Run unit tests | |
| working-directory: MDANSE | |
| run: pytest | |
| test_GUI: | |
| name: (${{ matrix.os }}-${{ matrix.python-version }}) Build MDANSE_GUI and run_gui tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Disable mandb | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| # Disable mandb | |
| echo "set man-db/auto-update false" | sudo debconf-communicate | |
| sudo dpkg-reconfigure man-db | |
| - uses: pyvista/setup-headless-display-action@v3 | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| with: | |
| qt: true | |
| - name: Install MDANSE | |
| working-directory: MDANSE | |
| run: python -m pip install ".[test]" | |
| - name: Install MDANSE_GUI | |
| working-directory: MDANSE_GUI | |
| run: python -m pip install ".[test]" | |
| - name: Run GUI unit tests | |
| working-directory: MDANSE_GUI | |
| run: pytest |