Update panel and CI#4
Update panel and CI#4aclark4life wants to merge 3 commits intomongodb-labs:mainfrom aclark4life:main
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
| build_dist: | ||
| name: Build Distribution Files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| # Build sdist on lowest supported Python | ||
| python-version: '3.9' | ||
|
|
||
| - name: Install build | ||
| run: | | ||
| python -m pip install build | ||
|
|
||
| - name: build the dist files | ||
| run: | | ||
| python -m build . | ||
|
|
||
| - name: Upload the dist files | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: dist-${{ github.run_id }} | ||
| path: ./dist/*.* |
Check warning
Code scanning / zizmor
default permissions used due to no permissions: block Warning
| test_dist: | ||
| needs: [build_dist] | ||
| name: Test Distribution Files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| # Build sdist on lowest supported Python | ||
| python-version: '3.9' | ||
|
|
||
| - name: Download the dists | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: dist-${{ github.run_id }} | ||
| path: dist/ | ||
|
|
||
| - name: Test the sdist | ||
| run: | | ||
| cd dist | ||
| pip install *.tar.gz | ||
| python -c "import django_mongodb_extensions" | ||
| pip uninstall -y django-mongodb-extensions | ||
|
|
||
| - name: Test the wheel | ||
| run: | | ||
| cd dist | ||
| pip install *.whl | ||
| python -c "import django_mongodb_extensions" | ||
| pip uninstall -y django-mongodb-extensions |
Check warning
Code scanning / zizmor
default permissions used due to no permissions: block Warning
| static: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true | ||
| python-version: ${{ matrix.python-version }} | ||
| - uses: extractions/setup-just@v3 | ||
| - run: just install | ||
| - run: just lint | ||
| - run: just docs | ||
| - run: just doctest |
Check warning
Code scanning / zizmor
default permissions used due to no permissions: block Warning test
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
| fail-fast: false | ||
| name: CPython ${{ matrix.python-version }}-${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true | ||
| python-version: ${{ matrix.python-version }} | ||
| - uses: extractions/setup-just@v3 | ||
| - name: Start MongoDB on Linux | ||
| if: ${{ startsWith(runner.os, 'Linux') }} | ||
| uses: supercharge/mongodb-github-action@1.12.0 | ||
| with: | ||
| mongodb-version: ${{ env.MAX_MONGODB }} | ||
| mongodb-replica-set: test-rs | ||
| - name: Start MongoDB on MacOS | ||
| if: ${{ startsWith(runner.os, 'macOS') }} | ||
| run: | | ||
| brew tap mongodb/brew | ||
| brew install mongodb/brew/mongodb-community@${MAX_MONGODB} | ||
| brew services start mongodb-community@${MAX_MONGODB} | ||
| - name: Start MongoDB on Windows | ||
| if: ${{ startsWith(runner.os, 'Windows') }} | ||
| shell: powershell | ||
| run: | | ||
| mkdir data | ||
| mongod --remove | ||
| mongod --install --dbpath=$(pwd)/data --logpath=$PWD/mongo.log | ||
| net start MongoDB | ||
| - run: just install | ||
| - run: just test |
Check warning
Code scanning / zizmor
default permissions used due to no permissions: block Warning test
|
@blink1073 Do we still want to copy |
|
You'll need to update the workflows as well to not use |
|
@blink1073 OK I'm confused… I'm going to close this one and send separate PRs for panel and CI, thanks! |
No description provided.