Skip to content

Commit

Permalink
Fix test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ducminh-phan committed Jul 10, 2022
1 parent d7e4db4 commit 5712117
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,40 @@ jobs:
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}

env:
poetry_version: 1.1.14

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.poetry_version }}
virtualenvs-create: true
virtualenvs-in-project: true

- name: Cache dependencies
uses: actions/cache@v3
with:
path: .venv
key: deps-${{ matrix.python-version }}-${{ matrix.os }}-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: |
pip install poetry coveralls
poetry install
- name: Run tests
run: pytest --cov
run: poetry run pytest --cov

- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
parallel: true
flag-name: test
Expand Down

0 comments on commit 5712117

Please sign in to comment.