chore: fix test #194
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: | |
- main | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '*.rst' | |
pull_request: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '*.rst' | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Ruff lint | |
uses: chartboost/ruff-action@v1 | |
tests: | |
# TODO: temporary disable because not log poetry.lock file on repo | |
if: ${{ false }} | |
needs: linting | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
- name: Install library | |
run: poetry install --no-interaction | |
- name: Run test | |
run: poetry run pytest |