summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 7c939995864ea144691e0d5cdd4c1878ab5846a5 (plain)
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
name: websocket-client build and test

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
        os: [ubuntu-latest, macOS-latest, windows-latest]

    steps:
      - name: Check out source repository
        uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }} environment
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Build websocket-client & run tests
        run: |
          pip install -U pip setuptools wheel readme_renderer twine six pytest PySocks
          python -c "import setuptools; print('Setup tools version'); print(setuptools.__version__)"
          pytest websocket/tests -v -rP
          python setup.py sdist
          twine check dist/*
        env:
          TEST_WITH_INTERNET: 1