This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ari Archer
committed
Nov 28, 2021
0 parents
commit 55eebc4
Showing
24 changed files
with
5,055 additions
and
0 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,46 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install tools | ||
run: | | ||
pip install poetry && poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi | ||
- name: Check formatting and run linters | ||
run: | | ||
sh check.sh | ||
#- name: build and deploy master image to ghcr.io | ||
# # if: ${{ github.ref == 'refs/heads/master' }} | ||
# env: | ||
# PKG_TOKEN: ${{ secrets.PKG_TOKEN }} | ||
# USERNAME: ${{ github.actor }} | ||
# run: | | ||
# git_hash=$(git rev-parse --short "$GITHUB_SHA") | ||
# git_branch="$(echo ${GITHUB_REF} | cut -d'/' -f3)" | ||
# echo ${PKG_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin | ||
# docker build -t ghcr.io/${USERNAME}/tg:${git_branch}-${git_hash} -t ghcr.io/${USERNAME}/tg:latest . | ||
# docker push ghcr.io/${USERNAME}/tg:${git_branch}-${git_hash} | ||
# docker push ghcr.io/${USERNAME}/tg:latest |
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,14 @@ | ||
.mypy_cache/ | ||
venv/ | ||
__pycache__ | ||
.env | ||
dist | ||
*.log* | ||
Makefile | ||
.idea/ | ||
.vim/ | ||
*monkeytype.sqlite3 | ||
.vscode/ | ||
build/ | ||
MANIFEST | ||
arigram.egg-info/ |
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,15 @@ | ||
FROM python:3.9.4-slim-buster | ||
|
||
WORKDIR /app | ||
|
||
ENV PYTHONPATH=/app | ||
|
||
RUN pip3 install --disable-pip-version-check --no-cache-dir poetry | ||
|
||
COPY poetry.lock pyproject.toml /app/ | ||
|
||
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-dev --no-root | ||
|
||
COPY . /app | ||
|
||
CMD python3 -m arigram |
Oops, something went wrong.