chore(deps): update dependency black to v24.10.0 #330
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre merge test | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
merge_test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable | |
- uses: isort/isort-action@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
virtualenvs-path: .venv | |
- name: Install Dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Test with pytest | |
run: | | |
source .venv/bin/activate | |
xvfb-run pytest -m devRun --base-url ${{ vars.BASE_URL }} | |
- name: Cache dependencies if tests pass | |
if: success() | |
uses: actions/cache/save@v4 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Auto-assign reviewers | |
uses: kentaro-m/[email protected] | |
if: success() | |
- name: Store Playwright Traces and Videos From Failed Tests | |
if: failure() | |
uses: actions/[email protected] | |
id: artifact-upload-step | |
with: | |
name: test-results | |
path: test-results/ | |
retention-days: 7 | |
- name: Link Playwright Traces And Videos To Allure Report | |
working-directory: allure-results | |
if: failure() | |
run: echo ARTIFACT_URL=${{ steps.artifact-upload-step.outputs.artifact-url }} >> environment.properties | |
- name: Link Git Information And Browser Version To Allure Report | |
working-directory: allure-results | |
if: always() | |
run: | | |
{ | |
echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
echo GIT_BRANCH=${{ github.head_ref || github.ref_name }} | |
echo GIT_COMMIT_ID=${{ github.sha }} | |
echo GIT_COMMIT_MESSAGE=$(git show -s --format=%s HEAD) | |
echo GIT_COMMIT_AUTHOR_NAME=$(git show -s --format='%ae' HEAD) | |
echo GIT_COMMIT_TIME=$(git show -s --format=%ci HEAD) | |
echo CHROME_VERSION=$(google-chrome --product-version) | |
} >> environment.properties | |
- name: Generate Allure Report | |
uses: simple-elf/allure-report-action@master | |
if: always() | |
id: allure-report | |
with: | |
allure_results: allure-results | |
allure_report: allure-report | |
gh_pages: gh-pages | |
allure_history: allure-history | |
- name: Deploy Report To Github Pages | |
if: always() | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: allure-history |