Skip to content

Commit

Permalink
add more test machines
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcj05 committed Sep 26, 2024
1 parent 13aba06 commit a3ee415
Showing 1 changed file with 60 additions and 1 deletion.
61 changes: 60 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,69 @@
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: ${{ 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 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-Windows:
runs-on: windows-latest
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
Expand Down

0 comments on commit a3ee415

Please sign in to comment.