👷 update ci version

This commit is contained in:
yanyongyu 2021-12-30 23:29:32 +08:00
parent e4691f0525
commit 21a958ffd9
4 changed files with 26 additions and 16 deletions

View File

@ -17,7 +17,12 @@ jobs:
python-version: "3.9" python-version: "3.9"
architecture: "x64" architecture: "x64"
- uses: Gr1N/setup-poetry@v4 - uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies - name: Install dependencies
run: poetry install -E all run: poetry install -E all

View File

@ -11,8 +11,21 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: "x64"
- uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"
@ -26,14 +39,6 @@ jobs:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: "x64"
- uses: Gr1N/setup-poetry@v4
- name: Install and build - name: Install and build
run: | run: |
poetry install -E all poetry install -E all

View File

@ -18,15 +18,15 @@ jobs:
python-version: 3.8 python-version: 3.8
architecture: "x64" architecture: "x64"
- uses: Gr1N/setup-poetry@v4 - uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v1 - uses: actions/cache@v2
with: with:
path: ~/.cache/pypoetry/virtualenvs path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"

View File

@ -23,15 +23,15 @@ jobs:
python-version: 3.8 python-version: 3.8
architecture: "x64" architecture: "x64"
- uses: Gr1N/setup-poetry@v4 - uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v1 - uses: actions/cache@v2
with: with:
path: ~/.cache/pypoetry/virtualenvs path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"