👷 reuse workflow setup step

This commit is contained in:
yanyongyu
2022-01-13 16:41:01 +08:00
parent a8a1b4d65d
commit b52ccc3690
6 changed files with 55 additions and 102 deletions

View File

@ -11,21 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: "x64"
- 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
- name: Setup Python environment
uses: ./.github/actions/setup-python
- name: Run Pytest
run: |