1 different results on windows for test dataset (#2) #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: Q&A and Tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "bico/**" | |
- "tests/**" | |
- "poetry.lock" | |
pull_request: | |
paths: | |
- "bico/**" | |
- "tests/**" | |
- "poetry.lock" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.2 python3 - | |
poetry run pip install -U pip | |
poetry install --with dev | |
- name: Run MyPy | |
run: | | |
mkdir .mypy_cache | |
poetry run mypy --install-types --non-interactive bico | |
- name: Run Flake8 | |
run: | | |
poetry run flake8 bico/ | |
- name: Run Tests | |
run: | | |
poetry run python -m unittest discover tests -v |