fix: reformat #377
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: Main Workflow | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| python-version: [ | |
| 2.7, | |
| 3.5, | |
| 3.6, | |
| 3.7, | |
| 3.8, | |
| 3.9, | |
| "3.10", | |
| "3.11", | |
| "3.12", | |
| "3.13", | |
| "3.14", | |
| latest, | |
| rc | |
| ] | |
| adapter: ["tiny", "mongo"] | |
| exclude: | |
| - python-version: 2.7 | |
| adapter: mongo | |
| - python-version: 3.5 | |
| adapter: mongo | |
| env: | |
| MONGO_URL: mongodb://host.docker.internal | |
| runs-on: ubuntu-latest | |
| container: | |
| image: python:${{ matrix.python-version }} | |
| options: >- | |
| --add-host=host.docker.internal:host-gateway | |
| --volume /var/run/docker.sock:/var/run/docker.sock | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: | | |
| apt-get update | |
| apt-get install -y docker.io | |
| command -v docker | |
| docker version | |
| docker run -d --name mongo -p 27017:27017 mongo:7 | |
| if: matrix.adapter == 'mongo' | |
| - run: python --version | |
| - run: | | |
| pip install -r requirements.txt | |
| pip install -r extra.txt | |
| if: matrix.python-version != '2.7' | |
| - run: | | |
| pip install -r requirements.py2.txt | |
| pip install -r extra.py2.txt | |
| if: matrix.python-version == '2.7' | |
| - run: | | |
| pip install black | |
| black . --check | |
| if: matrix.python-version == '3.14' | |
| - run: | | |
| pip install pytest | |
| ADAPTER=${{ matrix.adapter }} pytest | |
| - run: ADAPTER=${{ matrix.adapter }} python setup.py test | |
| if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "latest"]'), matrix.python-version) }} | |
| build-pypy: | |
| name: Build PyPy | |
| strategy: | |
| matrix: | |
| python-version: [2.7, 3.6, 3.9, "3.10", "3.11"] | |
| adapter: ["tiny", "mongo"] | |
| exclude: | |
| - python-version: 2.7 | |
| adapter: mongo | |
| - python-version: 3.6 | |
| adapter: mongo | |
| env: | |
| MONGO_URL: mongodb://host.docker.internal | |
| runs-on: ubuntu-latest | |
| container: | |
| image: python:${{ matrix.python-version }} | |
| options: >- | |
| --add-host=host.docker.internal:host-gateway | |
| --volume /var/run/docker.sock:/var/run/docker.sock | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: | | |
| apt-get update | |
| apt-get install -y docker.io | |
| command -v docker | |
| docker version | |
| docker run -d --name mongo -p 27017:27017 mongo:7 | |
| if: matrix.adapter == 'mongo' | |
| - run: python --version | |
| - run: | | |
| pip install -r requirements.txt | |
| pip install -r extra.txt | |
| if: matrix.python-version != '2.7' | |
| - run: | | |
| pip install -r requirements.py2.txt | |
| pip install -r extra.py2.txt | |
| if: matrix.python-version == '2.7' | |
| - run: | | |
| pip install black | |
| black . --check | |
| if: matrix.python-version == '3.14' | |
| - run: | | |
| pip install pytest | |
| ADAPTER=${{ matrix.adapter }} pytest | |
| - run: ADAPTER=${{ matrix.adapter }} python setup.py test | |
| if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "latest"]'), matrix.python-version) }} |