Skip to content

adds support for --renew-anon-volumes #2201

adds support for --renew-anon-volumes

adds support for --renew-anon-volumes #2201

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
pull_request: {}
jobs:
build-linux-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Run all tests
run: |
cat /etc/docker/daemon.json
echo '{"insecure-registries" : [ "localhost:5000" ]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
sleep 2
docker info
pip install -e .
pip install -r ./lint-requirements.txt
flake8
isort --check ./
black --check ./
build-linux-test-with-binaries-other-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Run all tests
run: |
bash tests/ci-setup.sh
python -m pytest -v --durations=10 --ignore=tests/python_on_whales/components
build-linux-test-component:
strategy:
matrix:
component:
- buildx
- test_compose.py
- test_config.py
- test_container.py
- test_context.py
- test_image.py
- test_manifest.py
- test_network.py
- test_node.py
- test_plugin.py
- test_service.py
- test_stack.py
- test_swarm.py
- test_system.py
- test_task.py
- test_volume.py
pydantic-version:
- pydantic==1.*
- pydantic==2.*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Run test
run: |
bash tests/ci-setup.sh
pip install --upgrade ${{ matrix.pydantic-version }}
python -m pytest -v --durations=10 tests/python_on_whales/components/${{ matrix.component }}
build-linux-test-without-any-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Run all tests
run: |
cat /etc/docker/daemon.json
echo '{"insecure-registries" : [ "localhost:5000" ]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
sleep 2
docker info
python -m pip install -e .
python -m pip install -r ./tests/test-requirements.txt
python -m pytest -v --durations=10 ./tests/python_on_whales/components/buildx
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: prepare
run: |
python -m pip install -r tests/test-requirements.txt
python -m pip install -e .
- name: Run all tests
run: |
docker run hello-world
python -m pytest -v ./tests/python_on_whales/components/test_volume.py::test_simple_volume
# cost too much at the moment.
# build-macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install docker
# run: |
# mkdir -p ~/.docker/machine/cache
# curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso
# brew install docker docker-machine
# docker-machine create --driver virtualbox default
# docker-machine env default
# - uses: actions/setup-python@v2
# with:
# python-version: 3.8
# - name: prepare
# run: |
# pip install -r tests/test-requirements.txt
# pip install -e .
# - name: Run all tests
# run: |
# eval "$(docker-machine env default)"
# docker run hello-world
# pytest -v ./tests