lets just get a clean chrome first
This commit is contained in:
		
							parent
							
								
									a9ecf5c0d4
								
							
						
					
					
						commit
						6c34ae43c1
					
				@ -10,6 +10,7 @@ jobs:
 | 
				
			|||||||
        python-version: [ "3.12" ]
 | 
					        python-version: [ "3.12" ]
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      CHROMEDRIVER_VERSION: 114.0.5735.90
 | 
					      CHROMEDRIVER_VERSION: 114.0.5735.90
 | 
				
			||||||
 | 
					      CHROME_VERSION: 113.0.5672.0
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - name: Set up Python ${{ matrix.python-version }}
 | 
					      - name: Set up Python ${{ matrix.python-version }}
 | 
				
			||||||
@ -27,24 +28,23 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          apt update -y
 | 
					          apt update -y
 | 
				
			||||||
          apt upgrade -y
 | 
					          apt upgrade -y
 | 
				
			||||||
          apt install -y  fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libu2f-udev libcups2 libdrm2 libgbm1 libgtk-3-0 libgtk-4-1 libnspr4 libnss3 libu2f-udev libvulkan1 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 xdg-utils  
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install Chrome and Chromedriver for Linux
 | 
					      - name: Install Chrome and Chromedriver for Linux
 | 
				
			||||||
        if: runner.os == 'Linux'
 | 
					        if: runner.os == 'Linux'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
 | 
					          wget https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip
 | 
				
			||||||
          # dpkg -i google-chrome-stable_current_amd64.deb
 | 
					 | 
				
			||||||
          dpkg -i --force-all google-chrome-stable_current_amd64.deb
 | 
					 | 
				
			||||||
          
 | 
					 | 
				
			||||||
          wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
 | 
					          wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
 | 
				
			||||||
 | 
					          unzip chrome-linux64.zip
 | 
				
			||||||
          unzip chromedriver_linux64.zip
 | 
					          unzip chromedriver_linux64.zip
 | 
				
			||||||
          mv chromedriver drivers
 | 
					          mv chromedriver drivers
 | 
				
			||||||
 | 
					          export PATH=$PATH:./chrome-linux64
 | 
				
			||||||
 | 
					          export PATH=$PATH:./drivers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Verify Installation
 | 
					      - name: Verify Installation
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          which google-chrome
 | 
					          which chrome
 | 
				
			||||||
          google-chrome --version
 | 
					          chrome --version
 | 
				
			||||||
          drivers/chromedriver --version
 | 
					          chromedriver --version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Run the pytests
 | 
					      - name: Run the pytests
 | 
				
			||||||
        run: pytest -c pytest.ini -m chrome
 | 
					        run: pytest -c pytest.ini -m chrome
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user