Find mecab #73
Workflow file for this run
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: ci | |
on: | |
push: | |
branches: [ "develop", "master", "fix_github_ci" ] | |
pull_request: | |
branches: [ "develop", "master" ] | |
permissions: | |
contents: read | |
jobs: | |
# Basic linting and tests. | |
base-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y mecab mecab-ipadic-utf8 | |
echo ------------- | |
echo FIND THE LIB | |
which mecab | |
sudo find / -name libmecab.so | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install -r requirements.txt | |
- name: Setup config | |
run: | | |
mkdir ${{ github.workspace }}/data | |
echo "ENV: dev" > ${{ github.workspace }}/config/config.yml | |
echo "DATAPATH: ${{ github.workspace }}/data" >> ${{ github.workspace }}/config/config.yml | |
echo "DBNAME: test_lute.db" >> ${{ github.workspace }}/config/config.yml | |
ls ${{ github.workspace }} | |
cat ${{ github.workspace }}/config/config.yml | |
- name: Lint | |
run: inv lint | |
- name: Test | |
run: pytest | |
- name: Acceptance testing | |
run: inv accept --headless -s |