|
8 | 8 | branches: [master] |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - DevOps: |
| 11 | + PreflightChecks: |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | strategy: |
14 | | - fail-fast: true |
15 | 14 | matrix: |
16 | 15 | python-version: ["3.8", "3.9", "3.10", "3.11"] |
17 | 16 | steps: |
18 | | - #---------------------------------------------- |
19 | | - # check-out repo and set-up python |
20 | | - #---------------------------------------------- |
| 17 | + # checkout repository |
21 | 18 | - name: Checkout repository |
22 | 19 | uses: actions/checkout@v3 |
| 20 | + # setup specific python version |
23 | 21 | - name: Setup Python v${{ matrix.python-version }} |
24 | | - # id: setup-python |
25 | 22 | uses: actions/setup-python@v4 |
26 | 23 | with: |
27 | 24 | python-version: ${{ matrix.python-version }} |
28 | | - #---------------------------------------------- |
29 | | - # install & configure poetry |
30 | | - #---------------------------------------------- |
| 25 | + # install & configure poetry |
31 | 26 | - name: Install Poetry |
32 | 27 | uses: snok/install-poetry@v1 |
33 | 28 | with: |
34 | | - version: 1.3.2 |
| 29 | + version: 1.4.1 |
35 | 30 | virtualenvs-create: true |
36 | 31 | virtualenvs-in-project: true |
37 | | - #---------------------------------------------- |
38 | | - # load cached venv if cache exists |
39 | | - #---------------------------------------------- |
40 | | - # - name: Load cached venv |
41 | | - # id: cached-poetry-dependencies |
42 | | - # uses: actions/cache@v3 |
43 | | - # with: |
44 | | - # path: .venv |
45 | | - # key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} |
46 | | - #---------------------------------------------- |
47 | | - # install dependencies if cache does not exist |
48 | | - #---------------------------------------------- |
49 | | - - name: Install test dependencies |
50 | | - # if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' |
51 | | - run: poetry install --no-interaction --no-root --no-ansi --only tests |
52 | | - #---------------------------------------------- |
53 | | - # run test suite |
54 | | - #---------------------------------------------- |
55 | | - - name: Run tests |
| 32 | + # install dependencies |
| 33 | + - name: Install dependencies |
| 34 | + run: poetry install --no-interaction --no-ansi --without docs,hooks,sast |
| 35 | + # run preflight checks |
| 36 | + - name: Preflight checks with tox |
56 | 37 | run: | |
57 | 38 | source .venv/bin/activate |
58 | | - pytest tests/ |
| 39 | + tox |
0 commit comments