Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Archer committed Nov 28, 2021
0 parents commit 55eebc4
Show file tree
Hide file tree
Showing 24 changed files with 5,055 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
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
14 changes: 14 additions & 0 deletions .gitignore
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/
15 changes: 15 additions & 0 deletions Dockerfile
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
Loading

0 comments on commit 55eebc4

Please sign in to comment.