Skip to content

Dockerfile paring server #6

Dockerfile paring server

Dockerfile paring server #6

---
name: test-pairing-server
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
defaults:
run:
working-directory: ./pairing-server
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# https://endoflife.date/python
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#python
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt
- run: pip install -r requirements-test.txt
- run: flake8 bbb_pairing_server test --max-line-length=120
- run: bandit bbb_pairing_server
- run: python -m pytest