From 8a64552d8cbe691a54732c63b3786bc1e79065a8 Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Tue, 19 Nov 2024 11:27:12 -0500 Subject: [PATCH] Run tests with GitHub Actions. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6ec4608 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: ci +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9"] + mysql-version: ["8.0-debian"] + vtiger-version: ["8.2.0"] + services: + mysql: + image: mysql:${{ matrix.mysql-version }} + vtiger: + image: vtigercrm/vtigercrm-${{ matrix.vtiger-version }} + ports: + - "80:80" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - run: pip install -r requirements.txt + - run: python -m unittest + env: + VTIGER_HOST: http://localhost + VTIGER_USER: admin + VTIGER_PASS: admin