|
| 1 | +name: Run Tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ '*' ] |
| 6 | + pull_request: |
| 7 | + branches: [ main ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + docs: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 15 | + os: [ubuntu-latest] |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v1 |
| 18 | + - name: Set up Python ${{ matrix.python-version }} |
| 19 | + uses: actions/setup-python@v2 |
| 20 | + with: |
| 21 | + python-version: ${{ matrix.python-version }} |
| 22 | + - name: Install package |
| 23 | + run: pip install .[dev] |
| 24 | + - name: make docs |
| 25 | + run: make docs |
| 26 | + |
| 27 | + lint: |
| 28 | + runs-on: ${{ matrix.os }} |
| 29 | + strategy: |
| 30 | + matrix: |
| 31 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 32 | + os: [ubuntu-latest, macos-latest] |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v1 |
| 35 | + - name: Set up Python ${{ matrix.python-version }} |
| 36 | + uses: actions/setup-python@v2 |
| 37 | + with: |
| 38 | + python-version: ${{ matrix.python-version }} |
| 39 | + - name: Install package and dependencies |
| 40 | + run: pip install .[dev] |
| 41 | + - name: make lint |
| 42 | + run: make lint |
| 43 | + |
| 44 | + test: |
| 45 | + runs-on: ${{ matrix.os }} |
| 46 | + strategy: |
| 47 | + matrix: |
| 48 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 49 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v1 |
| 52 | + - name: Set up Python ${{ matrix.python-version }} |
| 53 | + uses: actions/setup-python@v2 |
| 54 | + with: |
| 55 | + python-version: ${{ matrix.python-version }} |
| 56 | + - name: Install package and dependencies |
| 57 | + run: pip install .[test] |
| 58 | + - name: make test |
| 59 | + run: make test |
0 commit comments