Examples install unlocked Python dependencies and use mutable CI Action versions
Source references: 3The quick start installs pytest-cov without a version, while the CI example installs the project's dev extras and runs third-party GitHub Actions through v3/v4 tags. Those references can resolve to different code over time, and both dependency installation and Actions can execute code.
If copied, the package versions selected at that time, the project's build backend, or subsequently changed Action code would execute with the user's local or CI-runner permissions.
These are examples for a user to adopt; merely reading the Skill does not run them. If copied, CI installs the currently resolved project dev dependencies, pytest, and pytest-cov, and executes GitHub Actions referenced by mutable major-version tags. Both dependency installation and Actions can execute code on the CI runner. The user can ask for lockfiles or hashes and for Actions pinned to reviewed commit SHAs.
```bash# Install coveragepip install pytest-cov# Run tests with coverageShow 2 other places
steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | pip install -e ".[dev]" pip install pytest pytest-cov - name: Upload coverage uses: codecov/codecov-action@v3 with: file: ./coverage.xml```