diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f55e4f..5d5ba91 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ on: jobs: test_client: - name: ${{ matrix.platform }} py${{ matrix.python-version }} + name: client ${{ matrix.platform }} py${{ matrix.python-version }} runs-on: ${{ matrix.platform }} strategy: matrix: @@ -55,3 +55,37 @@ jobs: - name: Coverage uses: codecov/codecov-action@v2 + + test_server: + name: server ${{ matrix.platform }} py${{ matrix.python-version }} + runs-on: ${{ matrix.platform }} + strategy: + matrix: + platform: [ubuntu-latest, windows-latest, macos-latest] + python-version: [3.8, 3.9, "3.10"] + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + pip install pytest + pip install -e ".[testing]" + working-directory: src/server + + - name: Test with pytest + run: pytest + working-directory: src/server + env: + PLATFORM: ${{ matrix.platform }} + + - name: Coverage + uses: codecov/codecov-action@v2