Bump selenium from 4.10.0 to 4.12.0 #319
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
pip install pytest pytest-cov | |
pytest --cov RatS --cov-report term-missing --cov-report xml | |
- name: Codacy Coverage Reporter | |
if: github.actor != 'dependabot[bot]' | |
uses: codacy/[email protected] | |
with: | |
api-token: ${{ secrets.CODACY_API_TOKEN }} | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml | |
language: python | |
env: | |
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }} | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
CODACY_USERNAME: ${{ github.GITHUB_REPOSITORY_OWNER }} | |
CODACY_PROJECT_NAME: RatS | |
docker: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'master' || github.ref_type == 'tag' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Publish to GitHub Docker Registry | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: stegschreck/rats/rats | |
username: ${{ secrets.GITHUB_DOCKER_USERNAME }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: docker.pkg.github.com | |
tag_names: true | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Create Release | |
uses: softprops/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |