diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b97d6df6..c21802be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,23 +26,12 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: 3.x - - name: Install pipenv - run: | - python -m pip install --upgrade pipenv wheel - - id: cache-pipenv - uses: actions/cache@v2 - with: - path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} - - - name: Install dependencies - if: steps.cache-pipenv.outputs.cache-hit != 'true' - run: pipenv install --deploy --dev - - - name: Run tests - run: pipenv run coverage run --source=app -m unittest discover -s tests/ -v + - name: Create test environment + run: docker-compose up --build + - name: Run coverage tests + run: docker exec anunbis_backend bash -c "./tests.sh" - name: Install coveralls run: pip install coveralls