Skip to content

The tests are more functional #14

The tests are more functional

The tests are more functional #14

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
services:
docker:
image: docker:20.10.7
options: --privileged
ports:
- 2375:2375
env:
DOCKER_TLS_CERTDIR: ""
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Docker CLI
run: |
sudo apt-get update
sudo apt-get install -y docker-ce-cli
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Set Docker Host
run: |
echo "DOCKER_HOST=tcp://localhost:2375" >> $GITHUB_ENV
- name: Test with pytest
env:
DOCKER_HOST: tcp://localhost:2375
run: |
pytest --maxfail=5 -v