[pypi] Create sdist in addition to bdist #1074
This file contains 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: Analyze | |
# On all pushes to PRs or pushes to specific branches. Not on ALL pushes in general because it will | |
# double if pushing to a PR. | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
- 'dev' | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os}}-pip-${{ hashFiles('**/.*-requirements.txt') }} | |
restore-keys: | | |
${{ runner.os}}-pip- | |
- name: Analyze | |
run: ./misc/actions/analyze.sh |