From 12ace94d2880b7c4016cd809098df365c1b17516 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 19:46:24 +0000 Subject: [PATCH 01/19] chg: Migrate from Travis CI to GitHub Workflows. --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9e748a4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +--- +name: CI + +on: + pull_request: + branches: + - main + + # 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: pip install -r requirements.txt + + - name: Lint + run: make lint + + - name: Test + run: make test + + - name: Build + run: make build 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 From da381f7c033a3a68a2d18e6ee528c1f33e4b9aa5 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 19:51:35 +0000 Subject: [PATCH 02/19] fix: dev: Fix branch name. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e748a4..bcb2ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ name: CI on: pull_request: branches: - - main + - master # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 995c62ce80a9e32b1df52a6e2410daf2ac0494b1 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 19:59:30 +0000 Subject: [PATCH 03/19] fix: dev: Fix Python packages. --- requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index c6a9d35..2adfd19 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 @@ -59,7 +59,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 @@ -90,6 +90,7 @@ 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 From 1a2bf2af7c3a73bcdfafcddfbffeadb358b58dc3 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 20:11:23 +0000 Subject: [PATCH 04/19] fix: dev: Workflow syntax. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcb2ebe..d470679 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,16 @@ 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: @@ -32,3 +42,5 @@ jobs: - name: Build run: make build + env: + FOOTBALL_DATA_API: ${{ secrets.FOOTBALL_DATA_API }} From 0ed94b0cbffd0dd6e62aa58f4e6c11c4761f0bdc Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 20:20:37 +0000 Subject: [PATCH 05/19] fix: dev: Install pandoc. --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d470679..d4131e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,9 @@ jobs: python-version: 3.8 - name: Requirements - run: pip install -r requirements.txt + run: | + apt-get install -y pandoc + pip install -r requirements.txt - name: Lint run: make lint @@ -44,3 +46,9 @@ jobs: run: make build env: FOOTBALL_DATA_API: ${{ secrets.FOOTBALL_DATA_API }} + + - uses: actions/upload-artifact@v2 + with: + name: footy-artefact + path: Footy.pdf + From 3d13af8aa222befc33bb961323a1eabd43aa2517 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 20:21:54 +0000 Subject: [PATCH 06/19] fix: dev: Install pandoc (sudo). --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4131e8..45bc030 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Requirements run: | - apt-get install -y pandoc + sudo apt-get install -y pandoc pip install -r requirements.txt - name: Lint From a8635fe06ef4db4f5b77d738417092fef32fb613 Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 20:30:11 +0000 Subject: [PATCH 07/19] fix: dev: Install TeX. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45bc030..04e07ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Requirements run: | - sudo apt-get install -y pandoc + sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-generic-recommended pip install -r requirements.txt - name: Lint From 0f3ad75272cf0fc242ab977d9ed5433038abfb5d Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Thu, 18 Mar 2021 20:32:40 +0000 Subject: [PATCH 08/19] fix: dev: Install TeX (II). --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04e07ac..b89c17b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Requirements run: | - sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-generic-recommended + sudo apt-get install -y pandoc texlive-xetex pip install -r requirements.txt - name: Lint From 8627db14275af758318696bd25ba195412608006 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Mar 2021 14:50:54 +0000 Subject: [PATCH 09/19] Bump pillow from 7.2.0 to 8.1.1 Bumps [pillow](https://github.com/python-pillow/Pillow) from 7.2.0 to 8.1.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/7.2.0...8.1.1) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..a90e9c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -72,7 +72,7 @@ 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 From 295a28670a518ee6fc4d3ad71c3a0fb4bb2b3d33 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Mar 2021 00:03:08 +0000 Subject: [PATCH 10/19] Bump djangorestframework from 3.11.0 to 3.11.2 Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.11.0 to 3.11.2. - [Release notes](https://github.com/encode/django-rest-framework/releases) - [Commits](https://github.com/encode/django-rest-framework/compare/3.11.0...3.11.2) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..d641fab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ defusedxml==0.6.0 demjson==2.2.4 dispatch==1.3.10 Django==3.0.7 -djangorestframework==3.11.0 +djangorestframework==3.11.2 docopt==0.6.2 docutils==0.16 entrypoints==0.3 From aa7794e84d0d5c2fe90a7459bc77045a29412e36 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Mar 2021 05:03:08 +0000 Subject: [PATCH 11/19] Bump jinja2 from 2.11.2 to 2.11.3 Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.2 to 2.11.3. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..4e2293f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,7 +35,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 From ecfa65084a462a3c822f2230db349b82dba53c5d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Mar 2021 00:23:01 +0000 Subject: [PATCH 12/19] Bump pyyaml from 5.3.1 to 5.4 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3.1 to 5.4. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...5.4) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..38854f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -92,7 +92,7 @@ pytest==6.0.1 pytest-bdd==4.0.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 From afd82068abb740fae5995d35d79143f81fa0469c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Mar 2021 01:18:24 +0000 Subject: [PATCH 13/19] Bump pygments from 2.6.1 to 2.7.4 Bumps [pygments](https://github.com/pygments/pygments) from 2.6.1 to 2.7.4. - [Release notes](https://github.com/pygments/pygments/releases) - [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES) - [Commits](https://github.com/pygments/pygments/compare/2.6.1...2.7.4) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..45346ec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -85,7 +85,7 @@ 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 From a085f760c1671ba0c2310be907a79bcc67e5cf38 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:18:41 +0000 Subject: [PATCH 14/19] Bump lxml from 4.6.2 to 4.6.3 Bumps [lxml](https://github.com/lxml/lxml) from 4.6.2 to 4.6.3. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.2...lxml-4.6.3) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..1836cad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -49,7 +49,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 From fa472a4f02e4d30266ac983be06a199ec3194b04 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:48:54 +0000 Subject: [PATCH 15/19] Bump django from 3.0.7 to 3.0.14 Bumps [django](https://github.com/django/django) from 3.0.7 to 3.0.14. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.0.7...3.0.14) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..dc98e09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ decorator==4.4.2 defusedxml==0.6.0 demjson==2.2.4 dispatch==1.3.10 -Django==3.0.7 +Django==3.0.14 djangorestframework==3.11.0 docopt==0.6.2 docutils==0.16 From c3dc7c3224d5c7db4c16fe76c06096d5c4ad8a5b Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Sat, 10 Apr 2021 15:28:09 +0100 Subject: [PATCH 16/19] fix: dev: dependancy issues. --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5574436..a39503c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,6 @@ cycler==0.10.0 decorator==4.4.2 defusedxml==0.6.0 demjson==2.2.4 -dispatch==1.3.10 Django==3.0.14 djangorestframework==3.11.2 docopt==0.6.2 From b8d08cdb0a6a07e43164e911ae947e4440f4fb3b Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Sat, 10 Apr 2021 15:31:08 +0100 Subject: [PATCH 17/19] fix: dev: Debug pyenv packages. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b89c17b..fadeace 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,7 @@ jobs: - name: Requirements run: | sudo apt-get install -y pandoc texlive-xetex + pip freeze pip install -r requirements.txt - name: Lint From 0c179d0bb82f30914d9b5294d4dc8c069d5110eb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Apr 2021 20:44:02 +0000 Subject: [PATCH 18/19] Bump py from 1.9.0 to 1.10.0 Bumps [py](https://github.com/pytest-dev/py) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/pytest-dev/py/releases) - [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/py/compare/1.9.0...1.10.0) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2ea463..182ac09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -78,7 +78,7 @@ 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 From 2f84cdb71bc3db2086dda6d44b6aad3265e3ec0f Mon Sep 17 00:00:00 2001 From: Ben Dalling Date: Sat, 13 Nov 2021 14:15:36 +0000 Subject: [PATCH 19/19] =?UTF-8?q?fix:=20Correct=20the=20name=20for=20Campe?= =?UTF-8?q?onato=20Brasileiro=20S=C3=A9rie=20A.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- footy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: