Skip to content

Commit

Permalink
Update test.yml (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Oct 28, 2023
1 parent 6416c18 commit 6a11b7a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,17 +22,18 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
pip install -U pip
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
curl -sSL "https://install.python-poetry.org" | python
# Adding `poetry` to `$PATH`:
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
Expand All @@ -40,10 +48,9 @@ jobs:
poetry run pytest
poetry check
poetry run pip check
poetry run safety check --full-report
- name: Upload coverage to Codecov
if: matrix.python-version == 3.8
if: matrix.python-version == 3.11
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml

0 comments on commit 6a11b7a

Please sign in to comment.