This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
Fix #188
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: tests | |
on: | |
push: | |
branches: ['*', '*/*', master] | |
jobs: | |
run_pytest: | |
name: Run pytest for label-studio-tools | |
runs-on: ubuntu-latest | |
env: | |
LOG_DIR: pytest_logs | |
collect_analytics: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.7' | |
- name: Install dependencies | |
run: | | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-get install virtualenv libsasl2-dev python3-dev libldap2-dev libssl-dev | |
pip install -U pip==20.2 | |
pip install -r requirements.txt -r requirements-test.txt | |
- name: Run functional tests | |
run: | | |
cd label_studio_tools/tests/ | |
pytest --junitxml report.xml --cov=. -m "not integration_tests" | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |