Skip to content

add: Reqres.md

add: Reqres.md #15

Workflow file for this run

name: reqres
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run Pytest
run: |
pytest -s -v --alluredir=allure-results
- name: Get Allure history
uses: actions/checkout@v4
if: always()
with:
ref: gh-pages
path: gh-pages
- name: Allure Report action
uses: simple-elf/[email protected]
if: always()
with:
allure_results: allure-results
allure_history: allure-history
keep_reports: 20
- name: Commit Allure report
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.MY_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history