Skip to content

Add semi-automatic migration from classic to modern dy-services #54

Add semi-automatic migration from classic to modern dy-services

Add semi-automatic migration from classic to modern dy-services #54

Workflow file for this run

name: dy-jupyter
on:
push:
paths:
- ".github/workflows/dy-jupyter.yml"
- "services/dy-jupyter/**"
- "services/dy-2Dgraph/**"
- "!**.md"
pull_request:
paths:
- ".github/workflows/dy-jupyter.yml"
- "services/dy-jupyter/**"
- "services/dy-2Dgraph/**"
- "!**.md"
env:
# secrets can be set in settings/secrets on github
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
jobs:
build-jupyter:
name: building dy-jupyter
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [3.6]
os: [ubuntu-18.04]
node: [10]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: setup python environmentactions/setup-python@v2
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: show versions
run: ./ci/helpers/show_system_versions.bash
- uses: actions/cache@v2
name: getting cached data
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: set owner variable
run: echo "OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV
- name: set docker image tag
if: github.ref != 'refs/heads/master'
run: echo "DOCKER_IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: set docker registry env
run: echo "DOCKER_REGISTRY=itisfoundation" >> $GITHUB_ENV
- name: set dev environs
working-directory: services/dy-jupyter
run: make .venv
- name: get current image if available
working-directory: services/dy-jupyter
run: make pull || true
- name: build
working-directory: services/dy-jupyter
run: |
source .venv/bin/activate
make build
- name: test
working-directory: services/dy-jupyter
run: |
source .venv/bin/activate
make test
- if: github.event_name == 'push'
name: deploy
working-directory: services/dy-jupyter
run: |
./../../ci/helpers/dockerhub_login.bash
make push
build-2d-graph:
name: building dy-2Dgraph
runs-on: ${{ matrix.os }}
needs: [build-jupyter]
strategy:
matrix:
python: [3.6]
os: [ubuntu-18.04]
node: [10]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: setup python environment
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: show versions
run: ./ci/helpers/show_system_versions.bash
- uses: actions/cache@v2
name: getting cached data
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: set owner variable
run: echo "OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV
- name: set docker image tag
if: github.ref != 'refs/heads/master' && github.event_name != 'pull_request'
run: echo "DOCKER_IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- if: github.event_name == 'pull_request'
name: set docker registry env
run: echo "DOCKER_REGISTRY=itisfoundation" >> $GITHUB_ENV
- name: set dev environs
working-directory: services/dy-2Dgraph/use-cases
run: make .venv
- name: get current image if available
working-directory: services/dy-2Dgraph/use-cases
run: make pull || true
- name: build
working-directory: services/dy-2Dgraph/use-cases
run: |
source .venv/bin/activate
make build-travis
- if: github.event_name == 'push'
name: deploy
working-directory: services/dy-2Dgraph/use-cases
run: |
./../../../ci/helpers/dockerhub_login.bash
make push-travis