-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into patch-1
- Loading branch information
Showing
144 changed files
with
4,336 additions
and
1,488 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ max_line_length = 80 | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 |
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# GitHub code owners | ||
# See https://help.github.com/articles/about-codeowners/ | ||
# | ||
# KEEP THIS FILE SORTED. Order is important. Last match takes precedence. | ||
|
||
* @aiordache @ulyssessouza |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Python package | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
DOCKER_BUILDKIT: '1' | ||
|
||
jobs: | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- run: pip install -U flake8 | ||
- name: Run flake8 | ||
run: flake8 docker/ tests/ | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11.0"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip3 install -r test-requirements.txt -r requirements.txt | ||
- name: Run unit tests | ||
run: | | ||
docker logout | ||
rm -rf ~/.docker | ||
py.test -v --cov=docker tests/unit | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
variant: [ "integration-dind", "integration-dind-ssl", "integration-dind-ssh" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: make ${{ matrix.variant }} | ||
run: | | ||
docker logout | ||
rm -rf ~/.docker | ||
make ${{ matrix.variant }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Release Tag WITHOUT `v` Prefix (e.g. 6.0.0)" | ||
required: true | ||
dry-run: | ||
description: 'Dry run' | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Generate Pacakge | ||
run: | | ||
pip3 install wheel | ||
python setup.py sdist bdist_wheel | ||
env: | ||
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DOCKER: ${{ inputs.tag }} | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: '! inputs.dry-run' | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
- name: Create GitHub release | ||
uses: ncipollo/release-action@v1 | ||
if: '! inputs.dry-run' | ||
with: | ||
artifacts: "dist/*" | ||
generateReleaseNotes: true | ||
draft: true | ||
commit: ${{ github.sha }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ inputs.tag }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,10 @@ html/* | |
_build/ | ||
README.rst | ||
|
||
# setuptools_scm | ||
_version.py | ||
|
||
env/ | ||
venv/ | ||
.idea/ | ||
*.iml |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
ARG PYTHON_VERSION=2.7 | ||
ARG PYTHON_VERSION=3.10 | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
||
COPY requirements.txt /src/requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY test-requirements.txt /src/test-requirements.txt | ||
RUN pip install -r test-requirements.txt | ||
RUN pip install --no-cache-dir -r test-requirements.txt | ||
|
||
COPY . /src | ||
RUN pip install . | ||
COPY . . | ||
ARG SETUPTOOLS_SCM_PRETEND_VERSION_DOCKER | ||
RUN pip install --no-cache-dir . |
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.