-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: always-on-duty[bot] <120557446+always-on-duty[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7e68604
commit 94dd48a
Showing
22 changed files
with
752 additions
and
778 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Freeze PR dependency changes | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: ["piped", "pyproject.toml", "requirements.in", "dev-requirements/*.in", "!dev-requirements/constraints.in"] | ||
|
||
jobs: | ||
freeze-pr-dep-changes: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install prerequisites | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r ./piped/python/base-requirements/nox.txt | ||
- name: Upgrade dependency locks | ||
run: python -m nox -s freeze-locks bot-package-diff | ||
|
||
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | ||
with: | ||
name: gogo.patch | ||
path: gogo.patch | ||
|
||
- name: Check diff file | ||
run: python -m nox -s is-diff-file-empty |
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,41 @@ | ||
name: Lint | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "0 12 * * 6" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install prerequisites | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r ./piped/python/base-requirements/nox.txt | ||
- name: Check spelling | ||
run: python -m nox -s spell-check | ||
|
||
- name: Lint with flake8 | ||
run: python -m nox -s flake8 |
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,40 @@ | ||
name: Reformat PR code | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
reformat: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install prerequisites | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r ./piped/python/base-requirements/nox.txt | ||
- name: Reformat | ||
run: python -m nox -s reformat bot-package-diff | ||
|
||
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | ||
with: | ||
name: gogo.patch | ||
path: gogo.patch | ||
|
||
- name: Check diff file | ||
run: python -m nox -s is-diff-file-empty |
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,41 @@ | ||
name: Resync piped | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: ["piped", "piped.toml", "pyproject.toml"] | ||
|
||
jobs: | ||
resync-piped: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install prerequisites | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r ./piped/python/base-requirements/nox.txt | ||
- name: Resync Piped | ||
run: python -m nox -s copy-piped bot-package-diff | ||
|
||
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | ||
with: | ||
name: gogo.patch | ||
path: gogo.patch | ||
|
||
- name: Check diff file | ||
run: python -m nox -s is-diff-file-empty |
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,38 @@ | ||
name: Type check | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "0 12 * * 6" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
type-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install prerequisites | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install -r ./piped/python/base-requirements/nox.txt | ||
- name: Run type checker | ||
run: python -m nox -s type-check |
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
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,3 @@ | ||
[submodule "piped"] | ||
path = piped | ||
url = https://github.com/FasterSpeeding/Piped.git |
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,4 +1,10 @@ | ||
FROM python:3.11-buster | ||
COPY . . | ||
|
||
WORKDIR /code | ||
|
||
COPY ./runner.py ./runner.py | ||
COPY ./dev-requirements/constraints.txt ./requirements.txt | ||
|
||
RUN pip install -Ur requirements.txt | ||
|
||
ENTRYPOINT python runner.py |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.