ci: show full conda package list to diagnose Python 3.10 failure #8
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: CI | |
| on: | |
| push: | |
| branches: [master, develop] | |
| pull_request: | |
| branches: [master, develop] | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up conda (miniforge) | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-version: latest | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: mastermsm-test | |
| auto-activate-base: false | |
| - name: Install dependencies | |
| run: | | |
| conda install -y -c conda-forge \ | |
| numpy scipy matplotlib networkx \ | |
| mdtraj scikit-learn | |
| pip install pytest | |
| pip install -e . | |
| - name: Show package versions | |
| run: conda list | grep -E "numpy|scipy|mdtraj|networkx|scikit" | |
| - name: Run tests | |
| run: | | |
| pytest mastermsm/test/ -v --tb=long > pytest-output.txt 2>&1 | |
| RESULT=$? | |
| cat pytest-output.txt | |
| exit $RESULT |