Guest User

My workflow

a guest
Jan 25th, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.91 KB | None | 0 0
  1. name: Tests
  2.  
  3. on: [push]
  4.  
  5. jobs:
  6.   run-tests:
  7.     runs-on: ubuntu-18.04
  8.     steps:
  9.     - name: Install Python
  10.       uses: actions/setup-python@v2
  11.       with:
  12.         python-version: '3.x'
  13.         architecture: 'x64'
  14.  
  15.     - name: Install Dependencies
  16.       run: |
  17.        python -m pip install -U pip
  18.         pip install -U pytest selenium flake8 pylint
  19.  
  20.     - name: Check out and download repository
  21.       uses: actions/checkout@v2
  22.  
  23.     - name: Check code
  24.       run: |
  25.        flake8 --exit-zero test.py
  26.         pylint --errors-only test.py
  27.  
  28.     - name: Start Selenoid
  29.       run: |
  30.        wget --no-check-certificate -O cm https://github.com/aerokube/cm/releases/latest/download/cm_linux_amd64
  31.         chmod +x cm
  32.         ./cm selenoid start --args "-timeout 300s"
  33.         curl http://localhost:4444/status
  34.  
  35.     - name: Run tests
  36.       run: |
  37.        pytest test.py
  38.         continue-on-error: true
  39.  
Advertisement
Add Comment
Please, Sign In to add comment