Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Rework the CI #414

Merged
merged 3 commits into from
Feb 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 49 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,66 @@ name: Run tests
on: [push, pull_request]

jobs:
build-linux:
build-linux-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- 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 ./tests/test-requirements.txt
flake8
isort --check ./
black --check ./

build-linux-test-with-binaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- 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 ./tests/test-requirements.txt
mkdir -p ~/.docker/cli-plugins/
wget https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-linux-x86_64 -O ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
wget https://github.com/docker/buildx/releases/download/v0.10.0/buildx-v0.10.0.linux-amd64 -O ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
pytest -v --durations=10 ./tests

build-linux-test-without-any-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- 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
bash tests/run_tests.sh
pip install -e .
pip install -r ./tests/test-requirements.txt
pytest -v --durations=10 ./tests/python_on_whales/components/buildx

build-windows:
runs-on: windows-latest
Expand Down
58 changes: 0 additions & 58 deletions tests/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions tests/run_tests.sh

This file was deleted.