CI #91
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
Build: | |
runs-on: ubuntu-20.04 | |
env: | |
CHROMEDRIVER_PATH: /usr/lib/chromium-browser/chromedriver | |
CHROMIUM_BROWSER: /usr/bin/chromium-browser | |
steps: | |
- run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
- run: apt-cache policy docker-ce | |
- run: sudo apt-get install docker-ce | |
- name: "Set up Python" | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
install: true | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # All of history | |
- name: Cache pip | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install pip==20.2 | |
pip install -r requirements.txt | |
- run: docker build . | |
- run: sudo apt-get update | |
- run: sudo apt-get install -y chromium-chromedriver | |
- run: chromium-browser --version | |
- run: which chromium-browser | |
- run: ./test.sh |