From f5cc8f9bed418882b88fc08b4cf166e3b8da2ff5 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Wed, 12 Apr 2023 14:39:17 -0400 Subject: [PATCH 1/4] Add workflow to build requirements. --- .github/workflows/requirements.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/requirements.yml diff --git a/.github/workflows/requirements.yml b/.github/workflows/requirements.yml new file mode 100644 index 000000000..ac7804521 --- /dev/null +++ b/.github/workflows/requirements.yml @@ -0,0 +1,30 @@ +name: testcontainers requirements +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + requirements: + strategy: + matrix: + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.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 From beb5c63c9e408e01c23c3424bb8b52a31494fe25 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Wed, 12 Apr 2023 14:43:18 -0400 Subject: [PATCH 2/4] Remove codecov requirement. --- requirements.in | 1 - requirements/3.10.txt | 4 ---- requirements/3.11.txt | 4 ---- requirements/3.7.txt | 4 ---- requirements/3.8.txt | 4 ---- requirements/3.9.txt | 4 ---- 6 files changed, 21 deletions(-) diff --git a/requirements.in b/requirements.in index 0204fdb8e..e9e122610 100644 --- a/requirements.in +++ b/requirements.in @@ -21,7 +21,6 @@ -e file:rabbitmq -e file:redis -e file:selenium -codecov>=2.1.0 cryptography<37 flake8<3.8.0 # 3.8.0 adds a dependency on importlib-metadata which conflicts with other packages. pg8000 diff --git a/requirements/3.10.txt b/requirements/3.10.txt index b56a20adb..410db34a3 100644 --- a/requirements/3.10.txt +++ b/requirements/3.10.txt @@ -112,11 +112,8 @@ charset-normalizer==3.1.0 # via requests clickhouse-driver==0.2.5 # via testcontainers-clickhouse -codecov==2.1.12 - # via -r requirements.in coverage[toml]==7.2.3 # via - # codecov # pytest-cov cryptography==36.0.2 # via @@ -318,7 +315,6 @@ redis==4.5.4 requests==2.28.2 # via # azure-core - # codecov # docker # docker-compose # google-api-core diff --git a/requirements/3.11.txt b/requirements/3.11.txt index b0ff13e91..812a888a7 100644 --- a/requirements/3.11.txt +++ b/requirements/3.11.txt @@ -115,11 +115,8 @@ charset-normalizer==3.1.0 # via requests clickhouse-driver==0.2.5 # via testcontainers-clickhouse -codecov==2.1.12 - # via -r requirements.in coverage[toml]==7.2.1 # via - # codecov # pytest-cov cryptography==36.0.2 # via @@ -309,7 +306,6 @@ redis==4.5.1 requests==2.28.2 # via # azure-core - # codecov # docker # docker-compose # google-api-core diff --git a/requirements/3.7.txt b/requirements/3.7.txt index 3d0119f6f..38f8d222b 100644 --- a/requirements/3.7.txt +++ b/requirements/3.7.txt @@ -118,11 +118,8 @@ charset-normalizer==3.1.0 # via requests clickhouse-driver==0.2.5 # via testcontainers-clickhouse -codecov==2.1.12 - # via -r requirements.in coverage[toml]==7.2.3 # via - # codecov # pytest-cov cryptography==36.0.2 # via @@ -335,7 +332,6 @@ redis==4.5.4 requests==2.28.2 # via # azure-core - # codecov # docker # docker-compose # google-api-core diff --git a/requirements/3.8.txt b/requirements/3.8.txt index 9c684faa9..ff16696cb 100644 --- a/requirements/3.8.txt +++ b/requirements/3.8.txt @@ -116,11 +116,8 @@ charset-normalizer==3.1.0 # via requests clickhouse-driver==0.2.5 # via testcontainers-clickhouse -codecov==2.1.12 - # via -r requirements.in coverage[toml]==7.2.3 # via - # codecov # pytest-cov cryptography==36.0.2 # via @@ -326,7 +323,6 @@ redis==4.5.4 requests==2.28.2 # via # azure-core - # codecov # docker # docker-compose # google-api-core diff --git a/requirements/3.9.txt b/requirements/3.9.txt index aa16500b9..52bdafbcf 100644 --- a/requirements/3.9.txt +++ b/requirements/3.9.txt @@ -112,11 +112,8 @@ charset-normalizer==3.1.0 # via requests clickhouse-driver==0.2.5 # via testcontainers-clickhouse -codecov==2.1.12 - # via -r requirements.in coverage[toml]==7.2.3 # via - # codecov # pytest-cov cryptography==36.0.2 # via @@ -319,7 +316,6 @@ redis==4.5.4 requests==2.28.2 # via # azure-core - # codecov # docker # docker-compose # google-api-core From 9792858261feccafb2ac87c3af53729a58df0890 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Wed, 12 Apr 2023 14:46:09 -0400 Subject: [PATCH 3/4] Store requirements as build artifact. --- .github/workflows/requirements.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/requirements.yml b/.github/workflows/requirements.yml index ac7804521..e0596371b 100644 --- a/.github/workflows/requirements.yml +++ b/.github/workflows/requirements.yml @@ -28,3 +28,8 @@ jobs: run: | rm requirements/${{ matrix.python-version }}.txt pip-compile --resolver=backtracking -v --upgrade -o requirements/${{ matrix.python-version }}.txt + - name: Store requirements as artifact + uses: actions/upload-artifact@v3 + with: + name: requirements/${{ matrix.python-version }}.txt + path: requirements/${{ matrix.python-version }}.txt From a37fd500c210e8b25aa362c78a36c4285eeb3885 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Wed, 12 Apr 2023 14:55:01 -0400 Subject: [PATCH 4/4] Remove slash from artifact name. --- .github/workflows/requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/requirements.yml b/.github/workflows/requirements.yml index e0596371b..684447d4d 100644 --- a/.github/workflows/requirements.yml +++ b/.github/workflows/requirements.yml @@ -31,5 +31,5 @@ jobs: - name: Store requirements as artifact uses: actions/upload-artifact@v3 with: - name: requirements/${{ matrix.python-version }}.txt + name: requirements-${{ matrix.python-version }}.txt path: requirements/${{ matrix.python-version }}.txt