From 6f120bdac6c4a03ef55dec6389b3fc2dd7f34523 Mon Sep 17 00:00:00 2001 From: rabeeafaraj Date: Sat, 9 Aug 2025 20:17:37 +0300 Subject: [PATCH] yaml_tests_update --- .github/workflows/api-tests.yaml | 38 +++++++++++++++++++++++++++++++ .github/workflows/ui-testing.yaml | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/api-tests.yaml diff --git a/.github/workflows/api-tests.yaml b/.github/workflows/api-tests.yaml new file mode 100644 index 000000000..df105d812 --- /dev/null +++ b/.github/workflows/api-tests.yaml @@ -0,0 +1,38 @@ +name: API Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + api-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m venv venv + source venv/bin/activate + pip install -r requirements.txt + pip install pytest pytest-cov requests + + # - name: Start your API server + # run: | + # # Add your server start command here, for example: + # # nohup python app.py & + # # sleep 10 + + - name: Run API tests + run: | + source venv/bin/activate + pytest diff --git a/.github/workflows/ui-testing.yaml b/.github/workflows/ui-testing.yaml index e71623e23..7f824e9be 100644 --- a/.github/workflows/ui-testing.yaml +++ b/.github/workflows/ui-testing.yaml @@ -56,7 +56,7 @@ jobs: - name: Run Selenium tests env: HEADLESS: true - WEKAN_URL: http://34.243.53.247:80 + WEKAN_URL: http://54.155.143.131:80 BROWSER: ${{ inputs.browser }} run: | pytest tests/ -v