From 5f2105cf3fc92a4b39b226b22c5c306b41a90936 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 20:01:17 -0700 Subject: [PATCH 1/8] Adding ad-hoc Windows build --- .github/workflows/windows.yml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100755 index 00000000000..569de01ece6 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,51 @@ +name: Ad-hoc Windows Build +on: workflow_dispatch +jobs: + windows-conda: + name: Windows-latest, Conda-latest, Python 3.8 + needs: test + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + # Need to fetch more than the last commit so that setuptools-scm can + # create the correct version string. If the number of commits since + # the last release is greater than this, the version still be wrong. + # Increase if necessary. + fetch-depth: 100 + # The GitHub token is preserved by default but this job doesn't need + # to be able to push to GitHub. + persist-credentials: false + + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + python-version: '3.8' + miniconda-version: 'latest' + auto-update-conda: true + channels: conda-forge + show-channel-urls: true + environment-file: conda-environment.yaml + activate-environment: testing + # Needed for caching + use-only-tar-bz2: true + + - name: Update Temp permissions on windows + if: runner.os == 'Windows' + shell: cmd /C CALL {0} + run: >- + c:\windows\system32\icacls C:\Users\runneradmin\AppData\Local\Temp /grant "everyone":F /t + - name: Install dependencies (Bash) + shell: bash -l {0} + run: | + conda info + pip install --user --requirement requirements-full.txt + - name: List installed packages (Bash) + shell: bash -l {0} + run: conda list + + - name: Run tests (Bash) + shell: bash -l {0} + run: pytest tests/ + From 251e0a1b3df2804d2124467c1bcb4a814f4bf4ee Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 20:13:27 -0700 Subject: [PATCH 2/8] Create Mac.yml --- .github/workflows/Mac.yml | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/Mac.yml diff --git a/.github/workflows/Mac.yml b/.github/workflows/Mac.yml new file mode 100644 index 00000000000..da5622448da --- /dev/null +++ b/.github/workflows/Mac.yml @@ -0,0 +1,55 @@ +# This is a basic workflow to help you get started with Actions + +name: Ad-hoc Mac OS X Build + +# Controls when the action will run. +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: macos-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + # Need to fetch more than the last commit so that setuptools-scm can + # create the correct version string. If the number of commits since + # the last release is greater than this, the version still be wrong. + # Increase if necessary. + fetch-depth: 100 + # The GitHub token is preserved by default but this job doesn't need + # to be able to push to GitHub. + persist-credentials: false + + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + python-version: '3.8' + miniconda-version: 'latest' + auto-update-conda: true + channels: conda-forge + show-channel-urls: true + environment-file: conda-environment.yaml + activate-environment: testing + # Needed for caching + use-only-tar-bz2: true + + - name: Install dependencies (Bash) + shell: bash -l {0} + run: | + conda info + pip install --user --requirement requirements-full.txt + - name: List installed packages (Bash) + shell: bash -l {0} + run: conda list + + - name: Run tests (Bash) + shell: bash -l {0} + run: pytest tests/ From 53f98b5178b32b824ce7e66cb5eea1de8bac9572 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 20:21:57 -0700 Subject: [PATCH 3/8] Documenting ad-hoc builds feature --- ROADMAP.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ROADMAP.md b/ROADMAP.md index 74e5d1e9828..a18f1c02854 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -189,6 +189,7 @@ - [ ] Write a developer guide - [ ] Add a docker CI - [x] Add Feature Flags (@aia) - [PR #158](https://github.com/DidierRLopes/GamestonkTerminal/pull/158) +- [ ] Add ad-hoc builds ### Long term From a04ac1b14cf7fbf7c7c34fbfbc301139d1f31467 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 20:31:07 -0700 Subject: [PATCH 4/8] Updating trigger --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 569de01ece6..cd9f370c426 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,5 +1,5 @@ name: Ad-hoc Windows Build -on: workflow_dispatch +on: [push, workflow_dispatch] jobs: windows-conda: name: Windows-latest, Conda-latest, Python 3.8 From 32cf87201d54c8c4576b09c4b222f19abba57085 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 20:32:38 -0700 Subject: [PATCH 5/8] Removing dependencies --- .github/workflows/windows.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index cd9f370c426..de5a1863ff9 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -3,7 +3,6 @@ on: [push, workflow_dispatch] jobs: windows-conda: name: Windows-latest, Conda-latest, Python 3.8 - needs: test runs-on: windows-latest steps: - name: Checkout From 53aca61bed1429bb8b29380dae673f3df77d458b Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 21:04:53 -0700 Subject: [PATCH 6/8] Updating Mac workflow and adding conda steps to Windows --- .github/workflows/Mac.yml | 19 +++++++------------ .github/workflows/windows.yml | 14 +++++++++++++- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Mac.yml b/.github/workflows/Mac.yml index da5622448da..801a6eae6b7 100644 --- a/.github/workflows/Mac.yml +++ b/.github/workflows/Mac.yml @@ -1,20 +1,15 @@ -# This is a basic workflow to help you get started with Actions - name: Ad-hoc Mac OS X Build - -# Controls when the action will run. on: - # Allows you to run this workflow manually from the Actions tab + push: workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel + inputs: + comments: + required: true + description: 'Test scenario tags' jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + macos-conda: + name: MacOS-latest, Conda-latest, Python 3.8 runs-on: macos-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index de5a1863ff9..5002dc5e928 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,5 +1,11 @@ name: Ad-hoc Windows Build -on: [push, workflow_dispatch] +on: + push: + workflow_dispatch: + inputs: + comments: + required: true + description: 'Test scenario tags' jobs: windows-conda: name: Windows-latest, Conda-latest, Python 3.8 @@ -35,6 +41,12 @@ jobs: shell: cmd /C CALL {0} run: >- c:\windows\system32\icacls C:\Users\runneradmin\AppData\Local\Temp /grant "everyone":F /t + - name: Install fbprophet with conda + shell: bash -l {0} + run: | + conda install -c conda-forge fbprophet=0.6 + conda install spyder + conda install gensim=3.8.3 - name: Install dependencies (Bash) shell: bash -l {0} run: | From 8a700990b7114214108af9af34f03fc4c1146835 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 21:21:56 -0700 Subject: [PATCH 7/8] Dropping the python version for Windows --- .github/workflows/windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5002dc5e928..5e68e5b177b 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,7 +8,7 @@ on: description: 'Test scenario tags' jobs: windows-conda: - name: Windows-latest, Conda-latest, Python 3.8 + name: Windows-latest, Conda-latest, Python 3.7 runs-on: windows-latest steps: - name: Checkout @@ -26,7 +26,7 @@ jobs: - name: Setup Miniconda uses: conda-incubator/setup-miniconda@v2 with: - python-version: '3.8' + python-version: '3.7' miniconda-version: 'latest' auto-update-conda: true channels: conda-forge From 6511e6814b83aee7aa79d3bff5ae9267e8e34c01 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Mon, 15 Mar 2021 21:52:51 -0700 Subject: [PATCH 8/8] Finalizing full clean builds --- .github/workflows/Mac.yml | 15 +++++++++++++-- .github/workflows/windows.yml | 12 ++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Mac.yml b/.github/workflows/Mac.yml index 801a6eae6b7..0636f0aea05 100644 --- a/.github/workflows/Mac.yml +++ b/.github/workflows/Mac.yml @@ -1,6 +1,9 @@ -name: Ad-hoc Mac OS X Build +name: Mac OS X Full Clean Build with ML on: push: + branches: + - "main" + - "full-builds" workflow_dispatch: inputs: comments: @@ -36,14 +39,22 @@ jobs: # Needed for caching use-only-tar-bz2: true + - name: Install gensim with conda + shell: bash -l {0} + run: | + conda install gensim=3.8.3 + - name: Install dependencies (Bash) shell: bash -l {0} run: | conda info pip install --user --requirement requirements-full.txt + - name: List installed packages (Bash) shell: bash -l {0} - run: conda list + run: | + conda list + pip list - name: Run tests (Bash) shell: bash -l {0} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5e68e5b177b..940138e40df 100755 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,6 +1,9 @@ -name: Ad-hoc Windows Build +name: Windows 10 Full Clean Build with ML on: push: + branches: + - "main" + - "full-builds" workflow_dispatch: inputs: comments: @@ -41,20 +44,25 @@ jobs: shell: cmd /C CALL {0} run: >- c:\windows\system32\icacls C:\Users\runneradmin\AppData\Local\Temp /grant "everyone":F /t + - name: Install fbprophet with conda shell: bash -l {0} run: | conda install -c conda-forge fbprophet=0.6 conda install spyder conda install gensim=3.8.3 + - name: Install dependencies (Bash) shell: bash -l {0} run: | conda info pip install --user --requirement requirements-full.txt + - name: List installed packages (Bash) shell: bash -l {0} - run: conda list + run: | + conda list + pip list - name: Run tests (Bash) shell: bash -l {0}