Merge pull request #6451 from dimagi/gh/staging/increase-kafka-disk #3573
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
# This workflow will install Python dependencies, run tests with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: commcare-cloud tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ["ubuntu-22.04"] | |
python-version: ["3.10"] | |
runs-on: ${{ matrix.os }} | |
env: | |
ANSIBLE_ROLES_PATH: "~/.ansible/roles" | |
CI_TEST: 1 | |
TEST: main | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up Commcare-Cloud Python Version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
source control/init.sh | |
# Note: the installs must be done in the following order, otherwise the installation of commcare-cloud | |
# tries to install from the commcare-cloud-bootstrap.egg_info directory | |
pip install -e .[test] | |
# setup 3.9 for deploy-stack | |
# may be removed when this file is updated to match global_vars/all.yml:python_version | |
sudo add-apt-repository -y ppa:deadsnakes/ppa | |
sudo apt update | |
sudo apt install python3.9 python3.9-venv | |
# Install virtualenv as an isolated global executable for deploy-stack in .tests/tests.sh | |
python3 -m pip install --user pipx | |
pipx install virtualenv | |
- name: Run tests | |
run: | | |
.tests/tests.sh |