mirror of
https://github.com/status-im/status-go.git
synced 2025-02-06 11:56:01 +00:00
ci_: temporarily change some workflows (#6277)
This commit is contained in:
parent
5240da6a20
commit
e4d5622a34
2
.github/workflows/commit-check.yml
vendored
2
.github/workflows/commit-check.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: "Conventional Commits"
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
|
83
.github/workflows/test-reliability.yml
vendored
83
.github/workflows/test-reliability.yml
vendored
@ -1,83 +0,0 @@
|
||||
name: Test Reliability
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
DEPLOY_TEST_REPORTS_PAT: ${{ secrets.DEPLOY_TEST_REPORTS_PAT }}
|
||||
|
||||
jobs:
|
||||
test-reliability:
|
||||
timeout-minutes: 90
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
cache: 'pip'
|
||||
|
||||
- name: Set up virtual environment in /tests-functional/
|
||||
run: |
|
||||
python -m venv tests-functional/.venv
|
||||
echo "tests-functional/.venv/bin" >> $GITHUB_PATH # Add virtualenv to PATH for subsequent steps
|
||||
|
||||
- name: Install dependencies based on requirements.txt
|
||||
run: pip install -r tests-functional/requirements.txt
|
||||
|
||||
- name: Build status-backend
|
||||
run: cd tests-functional; docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml -f docker-compose.status-go.local.yml up --build --remove-orphans -d
|
||||
|
||||
- name: Run tests
|
||||
run: pytest -m "reliability" -c tests-functional/pytest.ini --alluredir=allure-results
|
||||
|
||||
- name: Get allure history
|
||||
if: always()
|
||||
uses: actions/checkout@v4
|
||||
continue-on-error: true
|
||||
with:
|
||||
repository: status-im/status-go-allure
|
||||
ref: gh-pages
|
||||
path: gh-pages
|
||||
token: ${{ env.DEPLOY_TEST_REPORTS_PAT }}
|
||||
|
||||
- name: Setup allure report
|
||||
uses: simple-elf/allure-report-action@master
|
||||
if: always()
|
||||
id: allure-report
|
||||
with:
|
||||
allure_results: allure-results
|
||||
gh_pages: gh-pages
|
||||
allure_history: allure-history
|
||||
keep_reports: 30
|
||||
report_url: 'https://status-im.github.io/status-go-allure/'
|
||||
|
||||
- name: Deploy report to Github Pages
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
if: always()
|
||||
with:
|
||||
personal_token: ${{ env.DEPLOY_TEST_REPORTS_PAT }}
|
||||
external_repository: status-im/status-go-allure
|
||||
publish_branch: gh-pages
|
||||
publish_dir: allure-history
|
||||
|
||||
- name: Create job summary
|
||||
if: always()
|
||||
env:
|
||||
JOB_STATUS: ${{ job.status }}
|
||||
run: |
|
||||
echo "## Run Information" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- **Event**: ${{ github.event_name }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- **Actor**: ${{ github.actor }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Allure report will be available at: https://status-im.github.io/status-go-allure/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|
||||
{
|
||||
echo 'JOB_SUMMARY<<EOF'
|
||||
cat $GITHUB_STEP_SUMMARY
|
||||
echo EOF
|
||||
} >> $GITHUB_ENV
|
Loading…
x
Reference in New Issue
Block a user