diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bd5bb7..070bcec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,12 +62,15 @@ jobs: - name: Establish a cache for dependencies uses: actions/cache@v2 with: - path: ${HOME}/.local + path: | + ~/.local + ~/.cache/pip key: ${{ runner.os }} - name: Build run: | export PYTHONUSERBASE=${HOME}/.local + pip install --user wheel pip install --user -r requirements.txt ${PYTHONUSERBASE}/bin/pylint ${GITHUB_WORKSPACE}/mrmat_python_api_flask PYTHONPATH=${GITHUB_WORKSPACE} python -m pytest --cov=mrmat_python_api_flask diff --git a/.gitignore b/.gitignore index a7b6698..ba552da 100644 --- a/.gitignore +++ b/.gitignore @@ -246,5 +246,5 @@ dmypy.json # End of https://www.toptal.com/developers/gitignore/api/jetbrains,python -var/terraform/.terraform/ -var/terraform/.terraform.lock.hcl + +.coverage diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 31fad70..4e8fe8c 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -8,5 +8,12 @@ jdbc:postgresql://localhost:5432/localdb $ProjectFileDir$ + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://prometheus.mrmat.org:5432/prometheusdb + $ProjectFileDir$ + \ No newline at end of file diff --git a/.idea/mrmat-python-api-flask.iml b/.idea/mrmat-python-api-flask.iml index a5ec002..6334ba1 100644 --- a/.idea/mrmat-python-api-flask.iml +++ b/.idea/mrmat-python-api-flask.iml @@ -16,6 +16,7 @@ + diff --git a/.idea/pylint.xml b/.idea/pylint.xml new file mode 100644 index 0000000..161503e --- /dev/null +++ b/.idea/pylint.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/build.xml b/.idea/runConfigurations/build.xml index 65ea552..da868f9 100644 --- a/.idea/runConfigurations/build.xml +++ b/.idea/runConfigurations/build.xml @@ -6,14 +6,14 @@ -