Debian Codegraph @

.github/workflows/test.yaml

raw symbols SCIP
1 # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
4 # We should restore the cache and remove extra requirements installations after this is resolved https://github.com/actions/setup-python/issues/182
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