pvarki / python-rasenmaeher-api

1 stars 0 forks source link

Test/GitHub action v2 #12

Closed aarne33 closed 1 year ago

aarne33 commented 1 year ago

github-action refactored according to this spec:

...
      steps:
      - name: Testingz
        uses: actions/checkout@v3
        run: docker build --target tox -t rasenmaeher_api:tox .
        run: docker run rasenmaeher_api:tox

In addtion to above also added devel_shell build option to make sure Dockerfile is OK for that option as well.

Also in the action is now branches-ignore main on push. This prevent pre-commit check failure checking "commiting directly to main branch". In to the Dockerfile added a fix for error 'git failed. is it installed, and are you in a git repository directory?'

Testing coverage dropped down to 5% as we don't yet have too many tests. We will be adding tests and increasing the coverage threshold in future pull requests.