diff options
author | laixintao <laixintaoo@gmail.com> | 2021-06-04 11:59:38 +0800 |
---|---|---|
committer | laixintao <laixintaoo@gmail.com> | 2021-06-04 11:59:38 +0800 |
commit | 2097777f4b8d335dab3ab7279a98ce319a41ad30 (patch) | |
tree | 534d1921fb87183f79edb95f8da3501e5455bbe0 | |
parent | 407e8ed990026a9728cdfb114bc2d940001ae34a (diff) |
bugfix: try to fix ci with install-poetry
https://github.com/snok/install-poetry
-rw-r--r-- | .github/workflows/test.yaml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d3b0343..ecb632a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,19 +29,20 @@ jobs: with: python-version: ${{ matrix.python }} architecture: 'x64' + - name: Install Poetry + uses: snok/install-poetry@v1.1.6 + with: + virtualenvs-create: true + virtualenvs-in-project: true - name: Cache venv - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: venv # Look to see if there is a cache hit for the corresponding requirements file key: poetryenv-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('poetry.lock') }} - name: Install Dependencies run: | - python3 -m venv venv - . venv/bin/activate - pip install -U pip==21.1 setuptools - pip install poetry - poetry install + poetry install --no-interaction --no-root python -c "import sys; print(sys.version)" pip list - name: Pytest |