Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish docker image

on:
push:
tags: "*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Publish to GitHub packages
uses: whoan/docker-build-with-cache-action@v2
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ github.repository }}/falcon_best
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on:
pull_request: {}
push:
branches: master
tags: "*"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install dependencies with pipenv
run: |
cd packages/meerkat
pip install pipenv
pipenv install --deploy --dev

- run: pipenv run isort --recursive --diff .
- run: pipenv run black --check .
- run: pipenv run flake8
- run: pipenv run mypy
- run: pipenv run pytest --cov --cov-fail-under=100

docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build docker image
run: docker build . -t falcon_best:test

- name: Smoke test docker image
run: |
docker run --rm falcon_best:test 10
4 changes: 4 additions & 0 deletions packages/meerkat/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ pytest-cov = "*"
pytest-pycodestyle = "*"
mypy = "*"
pipenv-to-requirements = "*"
black = "==20.8b1"
flake8 = "*"
isort = "*"
pre-commit = "*"

[requires]
python_version = "3.9"
186 changes: 159 additions & 27 deletions packages/meerkat/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.