mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 14:18:48 +01:00
yaml_tests_update
This commit is contained in:
parent
476047b487
commit
6f120bdac6
2 changed files with 39 additions and 1 deletions
38
.github/workflows/api-tests.yaml
vendored
Normal file
38
.github/workflows/api-tests.yaml
vendored
Normal file
|
|
@ -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
|
||||
2
.github/workflows/ui-testing.yaml
vendored
2
.github/workflows/ui-testing.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue