Update pypi_release.yaml #38
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Tests | |
on: | |
push: | |
branches: [ "v0.1.0", "v0.1.8" ] | |
pull_request: | |
branches: [ "v0.1.0", "v0.1.8" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U pip setuptools wheel | |
pip install http://mozart.ipipan.waw.pl/~rtuora/spacy/pl_nask-0.0.7.tar.gz | |
pip install -U spacy==3.7.2 | |
python -m spacy download en_core_web_trf | |
python -m spacy download ru_core_news_lg | |
python -m spacy download uk_core_news_trf | |
python -m spacy download de_core_news_lg | |
pip install -r requirements.txt | |
# - name: Lint with flake8 | |
# run: | | |
# # stop the build if there are Python syntax errors or undefined names | |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test pl | |
run: | | |
python -m unittest discover tests/test_pl | |
- name: Test de | |
run: | | |
python -m unittest discover tests/test_de | |
- name: Test en | |
run: | | |
python -m unittest discover tests/test_en | |
- name: Test ru | |
run: | | |
python -m unittest discover tests/test_ru | |
- name: Test ukr | |
run: | | |
python -m unittest discover tests/test_ukr | |
- name: Test utils | |
run: | | |
python -m unittest discover tests/test_other | |
strategy: | |
fail-fast: false |