diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fadeace --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +--- +name: CI + +on: + pull_request: + branches: + - master + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + - cron: '0 0 * * FRI' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Requirements + run: | + sudo apt-get install -y pandoc texlive-xetex + pip freeze + pip install -r requirements.txt + + - name: Lint + run: make lint + + - name: Test + run: make test + + - name: Build + run: make build + env: + FOOTBALL_DATA_API: ${{ secrets.FOOTBALL_DATA_API }} + + - uses: actions/upload-artifact@v2 + with: + name: footy-artefact + path: Footy.pdf + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d9743c8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# command to install dependencies -install: - - pip install -r requirements.txt - -language: python - -python: - - "3.8" - -# command to run tests -script: - - make diff --git a/footy.yml b/footy.yml index 3fd45ef..156d316 100644 --- a/footy.yml +++ b/footy.yml @@ -9,7 +9,7 @@ competitions: BSA: bbc_table_site: "https://www.bbc.co.uk/sport/football/brazilian-league/table" - competition_name: "Série A" + competition_name: "Campeonato Brasileiro Série A" country: BR DED: diff --git a/requirements.txt b/requirements.txt index f2ea463..ec1a76e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ asgiref==3.2.10 attrs==19.3.0 Babel==2.8.0 backcall==0.2.0 -bleach==3.3.0 +bleach==3.1.5 certifi==2020.6.20 cffi==1.14.1 chardet==3.0.4 @@ -15,9 +15,8 @@ cycler==0.10.0 decorator==4.4.2 defusedxml==0.6.0 demjson==2.2.4 -dispatch==1.3.10 -Django==3.0.7 -djangorestframework==3.11.0 +Django==3.0.14 +djangorestframework==3.11.2 docopt==0.6.2 docutils==0.16 entrypoints==0.3 @@ -35,7 +34,7 @@ ipython==7.17.0 ipython-genutils==0.2.0 ipywidgets==7.5.1 jedi==0.17.2 -Jinja2==2.11.2 +Jinja2==2.11.3 joblib==0.16.0 jsonfield==3.1.0 jsonschema==3.2.0 @@ -49,7 +48,7 @@ jupyter-highlight-selected-word==0.2.0 jupyter-latex-envs==1.4.6 jupyter-nbextensions-configurator==0.4.1 kiwisolver==1.2.0 -lxml==4.6.2 +lxml==4.6.3 Mako==1.1.3 MarkupSafe==1.1.1 matplotlib==3.3.1 @@ -59,7 +58,7 @@ more-itertools==8.5.0 multipledispatch==0.6.0 nbconvert==5.6.1 nbformat==5.0.7 -notebook==6.1.5 +notebook==6.1.3 numpy==1.19.1 packaging==20.4 pandas==1.1.0 @@ -72,27 +71,28 @@ parso==0.7.1 pathspec==0.8.0 pexpect==4.8.0 pickleshare==0.7.5 -Pillow==7.2.0 +Pillow==8.1.1 pluggy==0.13.1 ply==3.11 prometheus-client==0.8.0 prompt-toolkit==3.0.6 ptyprocess==0.6.0 -py==1.9.0 +py==1.10.0 pycodestyle==2.6.0 pycodestyle-magic==0.5 pycparser==2.20 pydash==4.8.0 pydocstyle==5.0.2 pyflakes==2.2.0 -Pygments==2.6.1 +Pygments==2.7.4 pyparsing==2.4.7 pyrsistent==0.16.0 pytest==6.0.1 pytest-bdd==4.0.1 +pytest-cov==2.10.1 python-dateutil==2.8.1 pytz==2020.1 -PyYAML==5.3.1 +PyYAML==5.4 pyzmq==19.0.2 qtconsole==4.7.5 QtPy==1.9.0