Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
with:
python-version: "3.10"
cache: pip
cache-dependency-path: requirements/3.10.txt
cache-dependency-path: requirements/ubuntu-latest-3.10.txt
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements/3.10.txt
pip install -r requirements/ubuntu-latest-3.10.txt
- name: Build documentation
run: make docs
76 changes: 41 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,54 @@ jobs:
build:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runtime:
- machine: ubuntu-latest
python-version: "3.7"
- machine: ubuntu-latest
python-version: "3.8"
- machine: ubuntu-latest
python-version: "3.9"
- machine: ubuntu-latest
python-version: "3.10"
- machine: ubuntu-latest
python-version: "3.11"
component:
- arangodb
- azurite
- clickhouse
- compose
- core
- elasticsearch
- google
- kafka
- keycloak
- localstack
- meta
- minio
- mongodb
- mssql
- mysql
- neo4j
- nginx
- opensearch
- oracle
- postgres
- rabbitmq
- redis
- selenium
runs-on: ubuntu-latest
- arangodb
- azurite
- clickhouse
- compose
- core
- elasticsearch
- google
- kafka
- keycloak
- localstack
- meta
- minio
- mongodb
- mssql
- mysql
- neo4j
- nginx
- opensearch
- oracle
- postgres
- rabbitmq
- redis
- selenium
runs-on: ${{ matrix.runtime.machine }}
steps:
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
- name: Setup python ${{ matrix.runtime.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.runtime.python-version }}
cache: pip
cache-dependency-path: ${{ format('requirements/{0}.txt', matrix.python-version) }}
cache-dependency-path: ${{ format('requirements/{0}-{1}.txt', matrix.runtime.machine, matrix.runtime.python-version) }}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements/${{ matrix.python-version }}.txt
pip install -r requirements/${{ matrix.runtime.machine }}-${{ matrix.runtime.python-version }}.txt
- name: Run docker diagnostics
if: matrix.component == 'core'
run: |
Expand All @@ -78,7 +83,8 @@ jobs:
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& github.repository_owner == 'testcontainers'
&& matrix.python-version == '3.10'
&& matrix.runtime.python-version == '3.10'
&& matrix.runtime.machine == 'ubuntu-latest'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down
35 changes: 21 additions & 14 deletions .github/workflows/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,34 @@ jobs:
requirements:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: ubuntu-latest
runtime:
- machine: ubuntu-latest
python-version: "3.7"
- machine: ubuntu-latest
python-version: "3.8"
- machine: ubuntu-latest
python-version: "3.9"
- machine: ubuntu-latest
python-version: "3.10"
- machine: ubuntu-latest
python-version: "3.11"
- machine: windows-latest
python-version: "3.10"
- machine: macos-latest
python-version: "3.10"
runs-on: ${{ matrix.runtime.machine }}
steps:
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
- name: Setup python ${{ matrix.runtime.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.runtime.python-version }}
- name: Update pip and install pip-tools
run: pip install --upgrade pip pip-tools
- name: Build requirements
run: |
rm requirements/${{ matrix.python-version }}.txt
pip-compile --resolver=backtracking -v --upgrade -o requirements/${{ matrix.python-version }}.txt
run: pip-compile --resolver=backtracking -v --upgrade -o requirements.txt
- name: Store requirements as artifact
uses: actions/upload-artifact@v3
with:
name: requirements-${{ matrix.python-version }}.txt
path: requirements/${{ matrix.python-version }}.txt
name: requirements-${{ matrix.runtime.machine }}-${{ matrix.runtime.python-version }}.txt
path: requirements.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PYTHON_VERSIONS = 3.7 3.8 3.9 3.10 3.11
PYTHON_VERSION ?= 3.10
IMAGE = testcontainers-python:${PYTHON_VERSION}
REQUIREMENTS = $(addprefix requirements/,${PYTHON_VERSIONS:=.txt})
REQUIREMENTS = $(addprefix requirements/ubuntu-latest-,${PYTHON_VERSIONS:=.txt})
RUN = docker run --rm -it
# Get all directories that contain a setup.py and get the directory name.
PACKAGES = $(subst /,,$(dir $(wildcard */setup.py)))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.