Skip to content

Upgrade dependencies #238

Upgrade dependencies

Upgrade dependencies #238

Workflow file for this run

name: ci-checks
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
pylint:
runs-on: ubuntu-latest
name: "pylint"
steps:
- uses: actions/checkout@v2
- name: "Set up Python 3"
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install wheel
pip install -r requirements_manager.txt
pip install -r requirements_sdk.txt
pip install -r requirements_dev.txt
- name: "Run pylint!"
run: "pylint manager daeploy"
flake8:
runs-on: ubuntu-latest
name: "flake8"
steps:
- uses: actions/checkout@v2
- name: "Set up Python 3"
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: "Install dependencies"
run: "pip install flake8"
- name: "Run flake8!"
run: "flake8 manager daeploy"
pytest-manager:
runs-on: ubuntu-latest
needs: [black, pylint, flake8]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.TEST_DOCKER_USERNAME }}
password: ${{ secrets.TEST_DOCKER_PASSWORD }}
- uses: actions/checkout@v2
- name: "Set up Python 3.8"
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install -r requirements_manager.txt
pip install -r requirements_sdk.txt
pip install -r requirements_dev.txt
- name: "Install s2i"
run: |
wget -c https://github.com/openshift/source-to-image/releases/download/v1.3.0/source-to-image-v1.3.0-eed2850f-linux-amd64.tar.gz -O - | tar -xz
sudo cp s2i /usr/local/bin
- name: "Install Traefik"
run: |
wget -c https://github.com/traefik/traefik/releases/download/v2.3.1/traefik_v2.3.1_linux_amd64.tar.gz
tar -zxvf traefik_v2.3.1_linux_amd64.tar.gz
sudo cp traefik /usr/local/bin
- name: "Running manager tests with pytest"
run: "python -m pytest --verbose tests/manager_test/"
pytest-sdk:
runs-on: ubuntu-latest
needs: [black, pylint, flake8, pytest-manager]
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.TEST_DOCKER_USERNAME }}
password: ${{ secrets.TEST_DOCKER_PASSWORD }}
- uses: actions/checkout@v2
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install -r requirements_manager.txt
pip install -r requirements_sdk.txt
pip install -r requirements_dev.txt
- name: "Install s2i"
run: |
wget -c https://github.com/openshift/source-to-image/releases/download/v1.3.0/source-to-image-v1.3.0-eed2850f-linux-amd64.tar.gz -O - | tar -xz
sudo cp s2i /usr/local/bin
- name: "Install Traefik"
run: |
wget -c https://github.com/traefik/traefik/releases/download/v2.3.1/traefik_v2.3.1_linux_amd64.tar.gz
tar -zxvf traefik_v2.3.1_linux_amd64.tar.gz
sudo cp traefik /usr/local/bin
- name: "Running documentation tests with pytest"
run: "python -m pytest --verbose --doctest-glob='*.rst' docs/"
- name: "Running sdk tests with pytest"
run: "python -m pytest --verbose tests/sdk_test/"
pytest-e2e:
runs-on: ubuntu-latest
needs: [pytest-sdk]
steps:
- uses: actions/checkout@v2
- name: "Set up Python 3"
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install -r requirements_manager.txt
pip install -r requirements_sdk.txt
pip install -r requirements_dev.txt
- name: "Running E2E tests with pytest"
run: "python -m pytest --verbose tests/e2e_test/"