File: ci.yml

package info (click to toggle)
python-overrides 7.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: python: 1,661; sh: 5; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI

on:
  push:
    branches: [master, main]
  pull_request:
jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

    steps:
      - uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
      - name: Install requirements
        run: |
         pip install -U pip
         pip install -r requirements-dev.txt
         pip install .
      - name: Run pytest
        run: pytest tests
      - name: Run mypy
        run:  mypy overrides
      - name: Run mypy static tests (Python=3.11)
        if: matrix.python == '3.11'
        run: ./check_mypy.sh