ngc436/AutoTM installation test #189
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: 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", "3.10"] | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/checkout@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip | |
run: apt update && 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 -r requirements.txt | |
- name: Download english corpus | |
run: python -m spacy download en_core_web_sm | |
- name: set pythonpath | |
working-directory: src | |
run: | | |
echo "PYTHONPATH=." >> $GITHUB_ENV | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
- name: Run test code | |
working-directory: src | |
run: python ../examples/full_pipeline_example.py | |
- run: echo "🍏 This job's status is ${{ job.status }}." |