File: CI.yaml

package info (click to toggle)
python-stone 3.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,036 kB
  • sloc: python: 22,311; objc: 498; sh: 23; makefile: 11
file content (39 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download
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
33
34
35
36
37
38
39
name: CI
on:
  pull_request:

jobs:
  CI:
    continue-on-error: true
    runs-on: ${{ matrix.os }}
    # Supported Versions:
    # https://github.com/actions/python-versions/blob/main/versions-manifest.json
    strategy:
      matrix:
        os: [macos-latest, ubuntu-20.04]
        python-version: [3.8, 3.11, pypy-3.8, pypy-3.10]
    steps:
      - uses: actions/checkout@v2
      - name: Setup Python environment
        uses: actions/setup-python@v2.2.1
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install Requirements
        run: |
          python -m pip install --upgrade pip
          pip install flake8==5.0.4 pylint pytest
          pip install -r requirements.txt
          pip install -r test/requirements.txt
          python setup.py install
      - name: Run Linter
        run: |
          flake8 setup.py example stone test
          pylint --rcfile=.pylintrc setup.py example stone test
      - name: Run Unit Tests
        run: |
          pytest
      - name: Run MyPy
        if: matrix.python-version != 'pypy-3.7' 
        run: |
          pip install enum34 mypy types-six
          ./mypy-run.sh