From 21ad33d897e62ba6d8b2a88b6782d16e77c6c1a9 Mon Sep 17 00:00:00 2001 From: miles-kt-inkeep Date: Wed, 14 Feb 2024 16:28:04 -0500 Subject: [PATCH] more --- .flake8 | 2 ++ .github/workflows/example.yml | 13 +++++++++++++ .github/workflows/flake8.yml | 26 ++++++++++++++++++++++++++ .github/workflows/template.md | 2 ++ .gitignore | 2 ++ Dockerfile | 6 ++++++ 6 files changed, 51 insertions(+) create mode 100644 .flake8 create mode 100644 .github/workflows/example.yml create mode 100644 .github/workflows/flake8.yml create mode 100644 .github/workflows/template.md create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..51b50a0 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 100 \ No newline at end of file diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml new file mode 100644 index 0000000..b59bb0b --- /dev/null +++ b/.github/workflows/example.yml @@ -0,0 +1,13 @@ +name: example +on: pull_request +jobs: + comment: + name: Add checkout and pull commands + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: harupy/comment-on-pr@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: template.md \ No newline at end of file diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..90f6435 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,26 @@ +name: flake8 + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Lint with flake8 + run: | + flake8 . \ No newline at end of file diff --git a/.github/workflows/template.md b/.github/workflows/template.md new file mode 100644 index 0000000..6605fff --- /dev/null +++ b/.github/workflows/template.md @@ -0,0 +1,2 @@ +Inkeep sync has been started. + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f678d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +__pycache__/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..74374e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.7.5-slim + +RUN pip install PyGithub +COPY entrypoint.py /entrypoint.py + +ENTRYPOINT python /entrypoint.py \ No newline at end of file