Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
software-ace authored Feb 7, 2024
1 parent 6b180ca commit d0f3146
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest==8.0.0 allure-pytest==2.13.2 faker==22.6.0 requests==2.31.0
pip install pytest==8.0.0 pytest-html==4.1.1 faker==22.6.0 requests==2.31.0
- name: Install Allure command-line
run: |
wget -O allure-2.15.0.tgz https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.15.0/allure-commandline-2.15.0.tgz
tar -zxvf allure-2.15.0.tgz
echo "export PATH=\$PATH:$(pwd)/allure-2.15.0/bin" >> $GITHUB_ENV
- name: Run tests and generate Allure reports
run: |
pytest --alluredir=./allure-results
pytest --html=./results
- name: Load test report history
uses: actions/checkout@v3
Expand All @@ -43,12 +37,10 @@ jobs:

- name: Build test report
run: |
mkdir -p gh-pages/allure-results
cp -r allure-results/* gh-pages/allure-results
allure serve -o gh-pages/allure-results
cp -r results/* gh-pages/
- name: Publish test report
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v3.9.3
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d0f3146

Please sign in to comment.