aimclub/AutoTM installation test #404
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: build | |
run-name: ${{ github.repository }} installation test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9"] | |
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 | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 pytest poetry | |
poetry export -f requirements.txt --without-hashes --with dev > requirements.txt | |
pip install --ignore-installed -r requirements.txt | |
- name: Download english corpus | |
run: python -m spacy download en_core_web_sm | |
- 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: | | |
pytest tests | |
- run: echo "🍏 This job's status is ${{ job.status }}." |