A Smart, Automatic, Fast and Lightweight Web Scraper for Python
Python aiartificial-intelligenceautomationcrawlermachine-learningpythonscrapescraperscrapingweb-scrapingwebautomationwebscraping
Add CI workflows for tests
Mikaea9e90c723c0
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.ymlindex 4e1ef42..7665a92 100644--- a/.github/workflows/python-publish.yml+++ b/.github/workflows/python-publish.yml@@ -21,7 +21,11 @@ jobs:- name: Install dependenciesrun: |python -m pip install --upgrade pip- pip install setuptools wheel twine+ pip install setuptools wheel twine pytest+ pip install .+ - name: Run tests+ run: |+ pytest -q- name: Build and publishenv:TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlnew file mode 100644index 0000000..6dd6873--- /dev/null+++ b/.github/workflows/tests.yml@@ -0,0 +1,23 @@+name: Run Tests++on:+ push:+ release:+ types: [created]++jobs:+ test:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - name: Set up Python+ uses: actions/setup-python@v2+ with:+ python-version: '3.x'+ - name: Install dependencies+ run: |+ python -m pip install --upgrade pip+ pip install pytest+ pip install .+ - name: Run tests+ run: pytest -q