feat(model): add personalized model #191
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: GFI-Bot Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python -m pip install --user poetry | |
poetry install | |
- name: Set up a GitHub token | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} >> tokens.txt | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.7.0 | |
with: | |
mongodb-version: 4.4.1 | |
mongodb-port: 27020 | |
- name: Test with pytest | |
run: | | |
poetry run pytest --cov=./gfibot --cov-report=xml | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: true |