| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
name: Tests |
| 7 |
|
| 8 |
on: [pull_request] |
| 9 |
|
| 10 |
jobs: |
| 11 |
build: |
| 12 |
runs-on: ubuntu-latest |
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
| 16 |
steps: |
| 17 |
- uses: actions/checkout@v3 |
| 18 |
with: |
| 19 |
fetch-depth: 0 |
| 20 |
- name: Setup python |
| 21 |
uses: actions/setup-python@v4 |
| 22 |
with: |
| 23 |
python-version: ${{ matrix.python-version }} |
| 24 |
architecture: x64 |
| 25 |
- name: Install Poetry |
| 26 |
uses: snok/install-poetry@v1 |
| 27 |
with: |
| 28 |
version: latest |
| 29 |
virtualenvs-in-project: true |
| 30 |
virtualenvs-create: true |
| 31 |
- name: Install Dependencies |
| 32 |
run: | |
| 33 |
poetry install --all-groups --no-interaction |
| 34 |
- name: Test and Lint |
| 35 |
run: | |
| 36 |
./scripts/test |
| 37 |
- name: Upload coverage to Codecov |
| 38 |
uses: codecov/codecov-action@v3 |
| 39 |
with: |
| 40 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 41 |
file: ./coverage.xml |
| 42 |
flags: unittests |
| 43 |
name: decli |
| 44 |
fail_ci_if_error: true |