install nose
This commit is contained in:
parent
a720ad13e1
commit
29086efd9b
3 changed files with 15 additions and 11 deletions
3
.github/scripts/python-pkg-install.sh
vendored
3
.github/scripts/python-pkg-install.sh
vendored
|
@ -1,6 +1,7 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
pip3 install nose
|
||||||
|
|
||||||
pip3 install -e python_apps/airtime_analyzer/.
|
pip3 install -e python_apps/airtime_analyzer/.
|
||||||
pip3 install -e python_apps/airtime-celery/.
|
pip3 install -e python_apps/airtime-celery/.
|
||||||
pip3 install -e python_apps/api_clients/.
|
pip3 install -e python_apps/api_clients/.
|
||||||
pip3 install -e python_apps/pypo/.
|
pip3 install -e python_apps/pypo/.
|
||||||
|
|
4
.github/scripts/python-pkg-test.sh
vendored
4
.github/scripts/python-pkg-test.sh
vendored
|
@ -8,14 +8,14 @@ cd python_apps/airtime_analyzer
|
||||||
if ! nosetests . -x; then
|
if ! nosetests . -x; then
|
||||||
failed='t'
|
failed='t'
|
||||||
fi
|
fi
|
||||||
echo "::endgroup"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::API Client"
|
echo "::group::API Client"
|
||||||
cd ../api_clients
|
cd ../api_clients
|
||||||
if ! nosetests . -x; then
|
if ! nosetests . -x; then
|
||||||
failed='t'
|
failed='t'
|
||||||
fi
|
fi
|
||||||
echo "::endgroup"
|
echo "::endgroup::"
|
||||||
|
|
||||||
# Reset to repo root
|
# Reset to repo root
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
19
.github/workflows/test-all-Ubuntu.yml
vendored
19
.github/workflows/test-all-Ubuntu.yml
vendored
|
@ -14,6 +14,9 @@ jobs:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
ENVIRONMENT: testing
|
||||||
|
LIBRETIME_LOG_DIR: /tmp/log/libretime
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
|
@ -32,12 +35,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: '7.2'
|
php-version: '7.2'
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: |
|
run:
|
||||||
ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
sudo ./.github/scripts/install-bionic.sh
|
||||||
sudo bash ./.github/scripts/install-bionic.sh
|
|
||||||
- name: Run Python tests
|
- name: Run Python tests
|
||||||
run: |
|
run: |
|
||||||
sudo bash ./.github/scripts/python-pkg-install.sh
|
sudo ./.github/scripts/python-pkg-install.sh
|
||||||
./.github/scripts/python-pkg-test.sh
|
./.github/scripts/python-pkg-test.sh
|
||||||
- name: Run PHP tests
|
- name: Run PHP tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -48,6 +50,9 @@ jobs:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
ENVIRONMENT: testing
|
||||||
|
LIBRETIME_LOG_DIR: /tmp/log/libretime
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
|
@ -66,13 +71,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: '7.0'
|
php-version: '7.0'
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: |
|
run: sudo ./.github/scripts/install-xenial.sh
|
||||||
ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
|
||||||
sudo bash ./.github/scripts/install-xenial.sh
|
|
||||||
- name: Run Python tests
|
- name: Run Python tests
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
sudo bash ./.github/scripts/python-pkg-install.sh
|
sudo ./.github/scripts/python-pkg-install.sh
|
||||||
./.github/scripts/python-pkg-test.sh
|
./.github/scripts/python-pkg-test.sh
|
||||||
- name: Run PHP tests
|
- name: Run PHP tests
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue