add smoothing to target encoder + improve tests #13
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] | |
jobs: | |
pre-commit: | |
name: Run pre-commit on all files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install package including dev dependencies using Poetry | |
run: make env-install | |
- name: Run pre-commit on all files | |
run: pre-commit run --all-files | |
pytest: | |
name: Run unit-tests using pytest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install package including dev dependencies using Poetry | |
run: make env-install | |
- name: Run pytest tests | |
run: pytest tests |