docs: replace Travis CI badge with GitHub Actions, drop Codacy badge #3
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 -e . | |
| - name: Run tests | |
| run: | | |
| pip install pytest | |
| pytest mastermsm/test/ -v --tb=short |