|
4 | 4 | workflow_dispatch:
|
5 | 5 |
|
6 | 6 | jobs:
|
7 |
| - test: |
| 7 | + lint: |
8 | 8 | runs-on: ubuntu-latest
|
9 |
| - strategy: |
10 |
| - matrix: |
11 |
| - python-version: [3.8, 3.9, "3.10", "3.11"] |
12 | 9 |
|
13 | 10 | steps:
|
14 |
| - - uses: actions/checkout@v2.3.4 |
| 11 | + - uses: actions/checkout@v3 |
15 | 12 | with:
|
16 | 13 | fetch-depth: 1
|
17 | 14 |
|
18 |
| - - name: Set up Python ${{ matrix.python-version }} |
19 |
| - uses: actions/setup-python@v2.1.4 |
20 |
| - with: |
21 |
| - python-version: ${{ matrix.python-version }} |
22 |
| - |
23 | 15 | - name: Install Poetry
|
24 |
| - uses: abatilo/actions-poetry@v2.1.6 |
25 |
| - with: |
26 |
| - poetry-version: 1.6.1 |
| 16 | + run: pipx install poetry |
27 | 17 |
|
28 | 18 | - name: Set Poetry config
|
29 | 19 | run: |
|
30 |
| - poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }} |
| 20 | + poetry config virtualenvs.path ~/.virtualenvs3.11 |
| 21 | +
|
| 22 | + - name: Set up Python ${{ matrix.python-version }} |
| 23 | + uses: actions/setup-python@v3 |
| 24 | + with: |
| 25 | + python-version: 3.11 |
| 26 | + cache: "poetry" |
31 | 27 |
|
32 | 28 | - name: Install dependencies
|
33 | 29 | run: poetry install
|
34 | 30 |
|
35 | 31 | - name: ruff check
|
36 | 32 | run: poetry run ruff check .
|
37 | 33 |
|
38 |
| - - name: mypy |
| 34 | + - name: mypy check |
39 | 35 | run: poetry run mypy django_unicorn
|
40 | 36 |
|
| 37 | + test: |
| 38 | + runs-on: ubuntu-latest |
| 39 | + strategy: |
| 40 | + matrix: |
| 41 | + python-version: [3.8, 3.9, "3.10", "3.11"] |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + with: |
| 46 | + fetch-depth: 1 |
| 47 | + |
| 48 | + - name: Install Poetry |
| 49 | + run: pipx install poetry |
| 50 | + |
| 51 | + - name: Set Poetry config |
| 52 | + run: | |
| 53 | + poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }} |
| 54 | +
|
| 55 | + - name: Set up Python ${{ matrix.python-version }} |
| 56 | + uses: actions/setup-python@v3 |
| 57 | + with: |
| 58 | + python-version: ${{ matrix.python-version }} |
| 59 | + cache: "poetry" |
| 60 | + |
| 61 | + - name: Install dependencies |
| 62 | + run: poetry install -E minify |
| 63 | + |
41 | 64 | - name: Run all tests
|
42 | 65 | run: poetry run nox
|
0 commit comments