Bump zizmorcore/zizmor-action from 1aba86d8e1245be7a9ca003d46fcc85a76e6aa61 to 9d985c6a33094e632ee3e60d1924caa8588dc5db in the actions group #9
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: Tests | |
| on: | |
| push: | |
| branches: ['master'] | |
| pull_request: | |
| concurrency: | |
| group: tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -eux {0} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| name: Run ${{ matrix.options[0] }} Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Github Actions doesn't support pairing matrix values together, let's improvise | |
| # https://github.com/github/feedback/discussions/7835#discussioncomment-1769026 | |
| options: | |
| - ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py", "3.9"] | |
| - ["Replica Set", "tests/test_replica_set.py", "3.10"] | |
| - ["Replica Sets", "tests/test_replica_sets.py", "3.12"] | |
| - ["Sharded", "tests/test_sharded_clusters.py", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.options[2] }} | |
| allow-prereleases: true | |
| - name: Install MongoDB | |
| run: | | |
| wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add - | |
| echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list | |
| sudo apt-get update | |
| sudo apt-get install -y mongodb-org | |
| - name: Install Dependencies | |
| run: | | |
| pip install -e ".[test]" | |
| - name: Run Tests | |
| run: | | |
| pytest -raXs -v --durations 10 --color=yes ${{ matrix.options[1] }} |