Testing installation of Python dependencies via pylock.toml #2
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: Testing installation of Python dependencies via pylock.toml | |
| on: workflow_dispatch | |
| jobs: | |
| check-migrations-and-messages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - name: Install system packages | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y gettext | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .github/workflows/.python-version | |
| cache: pip | |
| cache-dependency-path: "**/pyproject.toml" | |
| # See what pylock.toml looks like if created here | |
| - name: Update lockfile | |
| run: | | |
| pip install --upgrade pip | |
| pip lock . | |
| - name: Diff vs. previously checked-in pylock.tomlgit diff | |
| run: git diff | |
| # - name: Install Python dependencies | |
| # run: | | |
| # pip install --upgrade pip | |
| # pip install --no-deps -r pylock.toml |