aimclub/AutoTM installation test #476
This file contains hidden or 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: build | |
| run-name: ${{ github.repository }} installation test | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11"] | |
| steps: | |
| - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
| - uses: actions/checkout@v3 | |
| - name: List files in the repository | |
| run: | | |
| ls ${{ github.workspace }} | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Using python version | |
| run: python --version | |
| # - name: Install pip | |
| # run: apt install -y python3-pip | |
| - name: Install dependencies for tests | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install flake8 poetry | |
| poetry install | |
| - name: Download english corpus | |
| run: poetry run python -m spacy download en_core_web_sm | |
| - name: Setting language and locale | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y locales | |
| sudo locale-gen ru_RU.UTF-8 | |
| sudo update-locale | |
| export LC_ALL="ru_RU.UTF-8" | |
| export LANG="ru_RU.UTF-8" | |
| export LANGUAGE="ru_RU.UTF-8" | |
| - name: set pythonpath | |
| run: | | |
| echo "PYTHONPATH=." >> $GITHUB_ENV | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 autotm --count --select=E9,F63,F7,F82 --show-source --statistics | |
| - name: Run test code | |
| run: | | |
| poetry run pytest tests | |
| - run: echo "🍏 This job's status is ${{ job.status }}." |