diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..828d420 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,23 @@ +name: Shopee Scraper + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + SCA: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black flake8 pytest + - name: Format with black + run: black . --exclude=venv --check