Skip to content

Commit

Permalink
Merge tesk-core project into source/tesk-core
Browse files Browse the repository at this point in the history
  • Loading branch information
lvarin committed Feb 7, 2024
2 parents f22c09a + 822e46c commit 35635b9
Show file tree
Hide file tree
Showing 62 changed files with 4,062 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/tesk-core/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.coverage
.pytest_cache/
.tox/
.eggs/
tesk-core/containers/
49 changes: 49 additions & 0 deletions source/tesk-core/.github/workflows/docker-build-publish-filer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tesk-core-filer

on:
push:
branches: [ 'testing-gh-action' ]
tags: [ '*' ]

workflow_dispatch:
inputs:
profile:
description: Profile name
required: false
default: tesk-core-filler

jobs:
build-from-source:
runs-on: ubuntu-latest
steps:
- name: Checkout elixir-cloud-aai/tesk-core
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
elixircloud/${{ github.workflow }}
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ./containers/filer.Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tesk-core-taskmaster

on:
push:
branches: [ 'testing-gh-action' ]
tags: [ '*' ]

workflow_dispatch:
inputs:
profile:
description: Profile name
required: false
default: tesk-core-taskmaster

jobs:
build-from-source:
runs-on: ubuntu-latest
steps:
- name: Checkout elixir-cloud-aai/tesk-core
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
elixircloud/${{ github.workflow }}
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ./containers/taskmaster.Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

25 changes: 25 additions & 0 deletions source/tesk-core/.github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
76 changes: 76 additions & 0 deletions source/tesk-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
.idea
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv
.python-version

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# mkdocs documentation
/site

# mypy
.mypy_cache/

# vim
.swp
17 changes: 17 additions & 0 deletions source/tesk-core/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sudo: false
language: python
dist: focal
cache: pip
python:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
install:
- sudo apt update
- sudo apt upgrade
- sudo apt install rustc cargo
- pip install tox-travis
script: tox

Loading

0 comments on commit 35635b9

Please sign in to comment.