From 18848d43a9b87ff66cfc09d6a0964157f696bf7d Mon Sep 17 00:00:00 2001 From: Fournet Enzo Date: Fri, 17 May 2024 22:30:55 +0200 Subject: [PATCH] better CI --- .github/workflows/python-CI.yml | 6 +++--- .gitignore | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-CI.yml b/.github/workflows/python-CI.yml index 3abf340..0643fb0 100644 --- a/.github/workflows/python-CI.yml +++ b/.github/workflows/python-CI.yml @@ -65,17 +65,17 @@ jobs: pip install ../../ - name: Run Coverage run: | - cd ./test/app/ && coverage run manage.py test && coverage xml + cd ./test/app/ && coverage run manage.py test && coverage html && coverage xml - name: Upload Coverage to GitHub uses: actions/upload-artifact@v2 with: name: coverage-report - path: ./test/app/coverage.xml + path: ./test/app/htmlcov - name: Report Coverage uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} - files: ./test/app/coverage.xml + files: ./test/app/htmlcov/coverage.xml publish-module: if: github.event_name == 'release' || github.event.inputs.job == 'publish-module' || github.event.inputs.job == 'all' diff --git a/.gitignore b/.gitignore index 68bc17f..f9268e3 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,8 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +# MacOS +.DS_Store +.AppleDouble +.LSOverride \ No newline at end of file