Make pods wait for user code containers to be actual ready #1349
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: resaas CI (Linux) | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
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@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry and system deps | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry==1.3.0 | |
sudo apt-get install -y protobuf-compiler | |
# Python Libs | |
- name: Install and test resaas.common | |
run: | | |
cd ./lib/common | |
poetry install | |
PYTHONPATH=$PYTHONPATH:$PWD poetry run pytest | |
# Remove automatically generated lockfile for library | |
rm ./poetry.lock | |
- name: Install and test resaas.schedule_estimation | |
run: | | |
cd ./lib/schedule_estimation | |
poetry install | |
PYTHONPATH=$PYTHONPATH:$PWD poetry run pytest | |
rm ./poetry.lock | |
# Python Applications | |
- name: Install and test resaas.scheduler | |
run: | | |
cd ./app/scheduler | |
poetry install | |
PYTHONPATH=$PYTHONPATH:$PWD poetry run pytest | |
- name: Install and test resaas.controller | |
run: | | |
cd ./app/controller | |
poetry install | |
PYTHONPATH=$PYTHONPATH:$PWD poetry run pytest |