-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (57 loc) · 1.96 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Run automated tests
on:
push:
branches:
- master
pull_request:
branches:
- master
- support/**
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
release:
types:
- published
workflow_dispatch:
permissions: write-all
jobs:
run_system_tests:
runs-on: ${{ matrix.os.runner }}
strategy:
fail-fast: false
matrix:
os: [{runner: 'ubuntu-latest'}, {runner: 'macos-14'}]
timeout-minutes: 500
steps:
- name: Checkout gh-push-allure-report-to-neofs
uses: actions/checkout@v4
- name: Run gh-push-allure-report-to-neofs
id: gh_push_allure_report_to_neofs
uses: ./
with:
NEOFS_WALLET: ${{ secrets.NEOFS_WALLET }}
NEOFS_WALLET_PASSWORD: ${{ secrets.NEOFS_WALLET_PASSWORD }}
NEOFS_NETWORK_DOMAIN: ${{ vars.NEOFS_NETWORK_DOMAIN }}
NEOFS_HTTP_GATE: ${{ vars.NEOFS_HTTP_GATE }}
STORE_OBJECTS_CID: ${{ vars.STORE_OBJECTS_CID }}
PR_LIFETIME: ${{ vars.PR_LIFETIME }}
MASTER_LIFETIME: ${{ vars.MASTER_LIFETIME }}
MANUAL_RUN_LIFETIME: ${{ vars.MANUAL_RUN_LIFETIME }}
OTHER_LIFETIME: ${{ vars.OTHER_LIFETIME }}
ALLURE_RESULTS_DIR: './tests/test_delete_metadata'
ALLURE_GENERATED_DIR: './tests/neofs-test-allure-generated-report'
- name: Prepare venv
shell: bash
id: prepare_venv
run: |
python3 -m venv venv
source venv/bin/activate && pip install -r requirements.txt
working-directory: ./tests
- name: Run tests
env:
REPORT_NEOFS_URL: ${{ steps.gh_push_allure_report_to_neofs.outputs.REPORT_NEOFS_URL }}
COMBINED_REPORT_DIR: ${{ steps.gh_push_allure_report_to_neofs.outputs.COMBINED_REPORT_DIR }}
run: |
source venv/bin/activate && pytest test_downloads.py --base_url="$REPORT_NEOFS_URL" --report_dir="$COMBINED_REPORT_DIR"
working-directory: ./tests