Anilibria APIv3 FIX #41
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: Python package | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8, 3.9, "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install locale | |
run: | | |
sudo apt install libxslt-dev libxml2-dev locales -y && sudo locale-gen ru_RU.UTF-8 | |
sudo update-locale | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install deps | |
run: | | |
python -m pip install pytest coverage coveralls | |
- name: Run tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
run: | | |
coverage run --source=torrt setup.py test | |
coveralls --service=github |