Improvments #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Squash tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-docker-24: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup | |
run: | | |
sudo apt-get update | |
pip install "tox<4.0.0" setuptools | |
- name: Info | |
run: | | |
docker version | |
docker info | |
- name: Run tests | |
run: | | |
PV=${{ matrix.python-version }} | |
echo "Running tests for Python version $PV ( ${PV/./} )" | |
make test-py"${PV/./}" | |
build-docker-25: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup | |
run: | | |
for pkg in containerd runc; do sudo apt-get remove $pkg; done | |
sudo apt-get update | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
apt-cache policy docker-ce | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
pip install "tox<4.0.0" setuptools | |
- name: Info | |
run: | | |
docker version | |
docker info | |
- name: Run tests | |
run: | | |
PV=${{ matrix.python-version }} | |
echo "Running tests for Python version $PV ( ${PV/./} )" | |
make test-py"${PV/./}" | |
build-podman-3: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup | |
run: | | |
sudo apt-get update | |
pip install "tox<4.0.0" setuptools | |
- name: Info | |
run: | | |
podman version | |
podman info | |
- name: Run tests | |
run: | | |
systemctl --user start podman.socket | |
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock | |
PV=${{ matrix.python-version }} | |
echo "Running tests for Python version $PV ( ${PV/./} )" | |
make test-py"${PV/./}" |