👷 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"
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
run: poetry install -E all

View File

@ -11,8 +11,21 @@ jobs:
steps:
- 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
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: "16"
@ -26,14 +39,6 @@ jobs:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
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
run: |
poetry install -E all

View File

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

View File

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