feature(places): add suggested tags based on upload images #96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Humanify CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| jobs: | |
| testing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python environment | |
| uses: ./.github/actions/setup-python-environment | |
| - name: Run tests | |
| env: | |
| SECRET_KEY: "django-insecure-1234" | |
| DJANGO_SETTINGS_MODULE: "humanify_project.settings.test" | |
| DJANGO_ALLOWED_HOSTS: "*" | |
| DJANGO_CORS_ALLOWED_ORIGINS: "*" | |
| DJANGO_CSRF_TRUSTED_ORIGINS: "*" | |
| run: | | |
| uv run coverage run -m pytest --no-migrations | |
| uv run coverage xml -o .report/coverage.xml | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: .report/coverage.xml | |
| coverage: | |
| needs: testing | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - name: Download coverage report | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: .report | |
| - name: Get Cover | |
| uses: orgoro/coverage@v3.2 | |
| with: | |
| coverageFile: .report/coverage.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| thresholdAll: 0.9 | |
| thresholdNew: 0.9 | |
| thresholdModified: 0.9 | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python environment | |
| uses: ./.github/actions/setup-python-environment | |
| - name: Run pre-commit checks | |
| run: uv run pre-commit run --all-files |