Skip to content

22: Making a sub-package for server functions #15

22: Making a sub-package for server functions

22: Making a sub-package for server functions #15

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- "dev*"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11"]
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 }}
cache: "pip"
- name: Update pip and install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[test]"
- name: Run tests
run: |
python -m pytest #--cov=pplink_client --cov-fail-under=89 test
- name: Install and run linters
if: |
matrix.python-version == '3.11' &&
matrix.os == 'ubuntu-latest'
run: |
python -m pip install ".[lint]"
python -m ruff check src test
python -m ruff format --check src test