Skip to content

Commit 1a713e5

Browse files
committed
generate allure results using npx
1 parent fbc249c commit 1a713e5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/github_actions_tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
2222

23+
- name: Setup Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: '22'
27+
28+
- name: Install Allure Commandline
29+
run: npm install -g allure-commandline --save-dev
30+
2331
- name: Set up Python
2432
uses: actions/setup-python@v4
2533
with:
@@ -48,13 +56,9 @@ jobs:
4856
source .venv/bin/activate
4957
pytest Ultimateqa/tests -n auto api_tests/test_users.py -n auto --alluredir=allure-results
5058
51-
- name: Generate and publish Allure Report
52-
uses: simple-elf/allure-report-action@master
53-
with:
54-
results-directory: allure-results
55-
report-directory: allure-report
56-
allure-endpoint: ""
57-
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
- name: Generate Allure Report
60+
run: |
61+
npx allure generate allure-results --clean -o allure-report
5862
5963
- name: Deploy Allure Report to GitHub Pages
6064
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)