mandd is testing out DACKAR #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub DACKAR test | |
run-name: ${{ github.actor }} is testing out DACKAR | |
on: [push, pull_request] | |
concurrency: | |
# Here the group is defined by the head_ref of the PR | |
group: ${{ github.head_ref }} | |
# Here we specify that we'll cancel any "in progress" workflow of the same group. Thus if we push, ammend a commit and push | |
# again the previous workflow will be cancelled, thus saving us github action build minutes and avoid any conflicts | |
cancel-in-progress: true | |
jobs: | |
Test-DACKAR-Linux: | |
# runs-on: [self-hosted, ubuntu-latest] | |
# runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
channels: conda-forge, defaults | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
auto-update-conda: true | |
auto-activate-base: true | |
- run: echo " The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo " This job is now running on a ${{ runner.os }} server" | |
- run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: pwd | |
- run: | | |
conda create -n dackar_libs python=3.11 | |
conda init bash && source ~/.bashrc && conda activate dackar_libs | |
pip install spacy==3.5 textacy matplotlib nltk coreferee beautifulsoup4 networkx pysbd tomli numerizer autocorrect pywsd openpyxl quantulum3[classifier] numpy==1.26 scikit-learn pyspellchecker contextualSpellCheck pandas | |
python3 -m spacy download en_core_web_lg | |
python3 -m coreferee install en | |
python3 -m nltk.downloader all | |
Test-DACKAR-Macos: | |
runs-on: macos-latest | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
channels: conda-forge, defaults | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
auto-update-conda: true | |
auto-activate-base: true | |
- run: echo " The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo " This job is now running on a ${{ runner.os }} server" | |
- run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: pwd | |
- run: | | |
conda create -n dackar_libs python=3.11 | |
conda init zsh && source ~/.zshrc && conda activate dackar_libs | |
pip install spacy==3.5 textacy matplotlib nltk coreferee beautifulsoup4 networkx pysbd tomli numerizer autocorrect pywsd openpyxl quantulum3[classifier] numpy==1.26 scikit-learn pyspellchecker contextualSpellCheck pandas | |
python3 -m spacy download en_core_web_lg | |
python3 -m coreferee install en | |
python3 -m nltk.downloader all | |
Test-DACKAR-Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
channels: conda-forge, defaults | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
activate-environment: dackar_libs | |
auto-update-conda: true | |
auto-activate-base: false | |
- run: echo " The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo " This job is now running on a ${{ runner.os }} server" | |
- run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: pwd | |
- run: | | |
echo " Create dackar_libs" | |
conda install python=3.11 | |
echo " Conda information" | |
conda info | |
echo " Activate Dackar conda environment" | |
pip install spacy==3.5 textacy matplotlib nltk coreferee beautifulsoup4 networkx pysbd tomli numerizer autocorrect pywsd openpyxl quantulum3[classifier] numpy==1.26 scikit-learn pyspellchecker contextualSpellCheck pandas | |
conda list | |
which python | |
python -m spacy download en_core_web_lg | |
python -m coreferee install en | |
python -m nltk.downloader all | |