add --ignore-requires-python in pip install #2
Workflow file for this run
This file contains hidden or 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: oseti test | ||
| on: | ||
| push: | ||
| paths: | ||
| - ".github/workflows/test-linux.yml" | ||
| - "oseti/**" | ||
| - "*.py" | ||
| - "requirements.txt" | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - ".github/workflows/test-linux.yml" | ||
| - "oseti/**" | ||
| - "*.py" | ||
| - "requirements.txt" | ||
| jobs: | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python: | ||
| - "3.13" | ||
| - "3.12" | ||
| - "3.11" | ||
| - "3.10" | ||
| - "3.9" | ||
| - "3.8" | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4.2.2 | ||
| - name: setup python ${{ matrix.python }} | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - name: Install MeCab | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y gettext mecab libmecab-dev mecab-ipadic-utf8 | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install --ignore-requires-python -r requirements.txt | ||
| python -m pip install -r test_requirements.txt | ||
| - name: Run tests | ||
| run: | | ||
| python -m pip install . | ||
| pytest | ||