Skip to content

Import the Sim2Bot Python client #2

Import the Sim2Bot Python client

Import the Sim2Bot Python client #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
# The bridge binds sockets and spawns a server process, so check the
# other two platforms on one version rather than the whole matrix.
- os: macos-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Test
run: pytest -q
package:
name: Build and check the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Build
run: |
python -m pip install --upgrade pip build twine
python -m build
- name: Check metadata
run: twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: distributions
path: dist/