Test on Multiple OS #60
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 on Multiple OS | |
| on: | |
| # push: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| path: . | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| pip install .[cloud] | |
| pip install pytest | |
| - name: Show working directory and files | |
| shell: bash | |
| run: | | |
| pwd | |
| ls -la | |
| - name: Run tests | |
| run: | | |
| pytest -v test --import-mode=importlib --maxfail=1 --disable-warnings -m "not local" | |
| working-directory: ${{ github.workspace }} |