Merge pull request #74 from minhsueh/add_animation3 #432
This file contains hidden or 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: selenium_tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - E2E_TESTS | |
| jobs: | |
| e2e-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.11 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: '18.x' | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install chromium-chromedriver | |
| export PATH=$PATH:/usr/lib/chromium-browser/ | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r tests/requirements.txt | |
| npm i | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check files | |
| run: | | |
| npm run lint:yaml | |
| - name: Build the components | |
| run: | | |
| npm run build | |
| - name: Test with pytest | |
| env: | |
| PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
| run: | | |
| pytest --headless tests |