Fix docker file after moving requirements txt #15
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: Run Unit Test | |
on: | |
push: | |
branches: | |
- master | |
- feature/unit_test | |
paths-ignore: | |
- 'README.md' | |
- 'README_zh.md' | |
- 'Makefile' | |
- 'ruff.toml' | |
workflow_dispatch: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install "pip<24.1" | |
pip install -r requirements/full.txt | |
pip install "sqlite-vec==0.1.1" | |
pip install pytest pytest-cov coverage codecov | |
- name: Test with pytest | |
run: pytest --cov | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload results to Code Climate | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: coverage xml |