Bump pyright from 1.1.321 to 1.1.334 #182
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: CI | |
"on": push | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry Action | |
uses: snok/[email protected] | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- run: pip install poetry | |
- run: poetry install --all-extras | |
# For transformers v4.22.0 | |
- run: | | |
poetry run python -c \ | |
'import transformers;transformers.utils.move_cache()' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: npm | |
- run: npm install | |
- run: poetry run make -j $(nproc) |