|
31 | 31 | run: | |
32 | 32 | poetry run flake8 scheduler/ |
33 | 33 |
|
34 | | - testFakeRedis: |
35 | | - needs: [ 'flake8' ] |
36 | | - runs-on: ubuntu-latest |
37 | | - strategy: |
38 | | - max-parallel: 6 |
39 | | - matrix: |
40 | | - python-version: [ '3.9', '3.10', '3.11', '3.12' ] |
41 | | - django-version: [ '3.2.22', '4.2.7' ] |
42 | | - exclude: |
43 | | - - python-version: '3.12' |
44 | | - django-version: '3.2.22' |
45 | | - outputs: |
46 | | - version: ${{ steps.getVersion.outputs.VERSION }} |
47 | | - steps: |
48 | | - - uses: actions/checkout@v4 |
49 | | - - name: Set up Python ${{ matrix.python-version }} |
50 | | - uses: actions/setup-python@v4 |
51 | | - with: |
52 | | - python-version: ${{ matrix.python-version }} |
53 | | - cache-dependency-path: poetry.lock |
54 | | - - name: Install poetry and dependencies |
55 | | - shell: bash |
56 | | - run: | |
57 | | - python -m pip --quiet install poetry |
58 | | - echo "$HOME/.poetry/bin" >> $GITHUB_PATH |
59 | | - poetry install -E yaml |
60 | | - poetry run pip install django==${{ matrix.django-version }} |
61 | | -
|
62 | | - - name: Get version |
63 | | - id: getVersion |
64 | | - shell: bash |
65 | | - run: | |
66 | | - VERSION=$(poetry version -s --no-ansi -n) |
67 | | - echo "VERSION=$VERSION" >> $GITHUB_OUTPUT |
68 | | - - name: Check for missing migrations |
69 | | - run: | |
70 | | - cd testproject |
71 | | - poetry run python manage.py makemigrations --check |
72 | | - - name: Run Tests without coverage |
73 | | - run: | |
74 | | - cd testproject |
75 | | - export FAKEREDIS=True |
76 | | - poetry run python manage.py test scheduler |
77 | | -
|
78 | 34 | testRedis: |
79 | 35 | needs: [ 'flake8' ] |
80 | 36 | runs-on: ubuntu-latest |
|
87 | 43 | - python-version: '3.11' |
88 | 44 | django-version: '4.2.7' |
89 | 45 | coverage: yes |
90 | | - exclude: |
91 | | - - python-version: '3.12' |
92 | | - django-version: '3.2.22' |
93 | 46 | services: |
94 | 47 | redis: |
95 | 48 | image: redis:7.2.0 |
@@ -166,3 +119,45 @@ jobs: |
166 | 119 | - uses: release-drafter/release-drafter@v5 |
167 | 120 | env: |
168 | 121 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 122 | + |
| 123 | + |
| 124 | + testFakeRedis: |
| 125 | + needs: [ 'flake8' ] |
| 126 | + runs-on: ubuntu-latest |
| 127 | + strategy: |
| 128 | + max-parallel: 6 |
| 129 | + matrix: |
| 130 | + python-version: [ '3.9', '3.10', '3.11' ] |
| 131 | + django-version: [ '3.2.22', '4.2.7' ] |
| 132 | + outputs: |
| 133 | + version: ${{ steps.getVersion.outputs.VERSION }} |
| 134 | + steps: |
| 135 | + - uses: actions/checkout@v4 |
| 136 | + - name: Set up Python ${{ matrix.python-version }} |
| 137 | + uses: actions/setup-python@v4 |
| 138 | + with: |
| 139 | + python-version: ${{ matrix.python-version }} |
| 140 | + cache-dependency-path: poetry.lock |
| 141 | + - name: Install poetry and dependencies |
| 142 | + shell: bash |
| 143 | + run: | |
| 144 | + python -m pip --quiet install poetry |
| 145 | + echo "$HOME/.poetry/bin" >> $GITHUB_PATH |
| 146 | + poetry install -E yaml |
| 147 | + poetry run pip install django==${{ matrix.django-version }} |
| 148 | +
|
| 149 | + - name: Get version |
| 150 | + id: getVersion |
| 151 | + shell: bash |
| 152 | + run: | |
| 153 | + VERSION=$(poetry version -s --no-ansi -n) |
| 154 | + echo "VERSION=$VERSION" >> $GITHUB_OUTPUT |
| 155 | + - name: Check for missing migrations |
| 156 | + run: | |
| 157 | + cd testproject |
| 158 | + poetry run python manage.py makemigrations --check |
| 159 | + - name: Run Tests without coverage |
| 160 | + run: | |
| 161 | + cd testproject |
| 162 | + export FAKEREDIS=True |
| 163 | + poetry run python manage.py test scheduler |
0 commit comments