tests: add a test case for custom server json encoding class #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| name: Run Tox tests | |
| jobs: | |
| tox_test: | |
| name: Tox test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Tox tests | |
| id: test | |
| uses: fedora-python/tox-github-action@main | |
| with: | |
| tox_env: ${{ matrix.tox_env }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| tox_env: [py39, py310, py311, py312, py313, pypy3, pep8] | |
| # Use GitHub's Linux Docker host | |
| runs-on: ubuntu-latest | |
| lints: | |
| name: Lints | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install ruff | |
| run: | | |
| python3 -m pip install --break-system-packages ruff mypy | |
| - name: Run ruff format | |
| run: | | |
| ruff --version | |
| if ! ruff format --check --quiet varlink | |
| then | |
| echo "Please run 'ruff format' on the above files or apply the diffs below manually" | |
| ruff format --check --quiet --diff varlink | |
| fi | |
| - name: Run ruff check | |
| run: | | |
| ruff --version | |
| ruff check varlink | |
| - name: Type Checking (mypy) | |
| run: | | |
| python3 -m mypy --version | |
| python3 -m mypy varlink/ | |
| runs-on: ubuntu-latest |