diff --git a/.github/workflows/modoboa.yml b/.github/workflows/modoboa.yml index 0f53a612d..db0224a5a 100644 --- a/.github/workflows/modoboa.yml +++ b/.github/workflows/modoboa.yml @@ -113,12 +113,13 @@ jobs: LDAP_SERVER_PORT: ${{ job.services.openldap.ports[389] }} - name: Test with pytest and coverage - if: ${{ matrix.python-version == '3.8' && matrix.database == 'postgres' }} + if: ${{ matrix.python-version == '3.10' && matrix.database == 'postgres' }} run: | python ./tests.py cd test_project coverage run manage.py test modoboa coverage combine + coverage report env: # use localhost for the host here because we are running the job on the VM. # If we were running the job on in a container this would be postgres @@ -129,7 +130,7 @@ jobs: REDIS_PORT: ${{ job.services.redis.ports[6379] }} LDAP_SERVER_PORT: ${{ job.services.openldap.ports[389] }} - name: Upload coverage result - if: ${{ matrix.python-version == '3.8' }} + if: ${{ matrix.python-version == '3.10' && matrix.database == 'postgres' }} uses: actions/upload-artifact@v2 with: name: coverage-results @@ -140,10 +141,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: '3.8' - name: Download coverage results uses: actions/download-artifact@v2 with: