-
Notifications
You must be signed in to change notification settings - Fork 373
CI: update github action workflow after sphinx-theme-builder switch, remove Python 3.6 #519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
87b78fe
40294fa
0aded10
ad35bff
3368232
ef05be4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,9 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: [3.7, 3.8, 3.9] | ||
| python-version: [3.7, 3.8, 3.9, "3.10"] | ||
| include: | ||
| - python-version: 3.9 | ||
| - python-version: "3.10" | ||
| dev: true | ||
|
|
||
| steps: | ||
|
|
@@ -31,20 +31,12 @@ jobs: | |
| uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Cache python wheels | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: | | ||
| ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip-${{ matrix.python-version }}- | ||
| ${{ runner.os }}-pip- | ||
| cache: "pip" | ||
| cache-dependency-path: "pyproject.toml" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools wheel | ||
| python -m pip install --upgrade pip | ||
| python -m pip install -e .[coverage] | ||
|
|
||
| - name: Install pre-release dependencies | ||
|
|
@@ -86,28 +78,20 @@ jobs: | |
| uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: "pip" | ||
| cache-dependency-path: "pyproject.toml" | ||
|
|
||
| - name: Set up Node/yarn | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: "16.x" | ||
|
|
||
| - name: Cache python wheels | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: | | ||
| ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip-${{ matrix.python-version }}- | ||
| ${{ runner.os }}-pip- | ||
|
|
||
| - name: Cache node_modules | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: "node_modules" | ||
| key: | | ||
| ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} | ||
| ${{ runner.os }}-node-modules-${{ hashFiles('package.json') }} | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
|
|
@@ -184,8 +168,8 @@ jobs: | |
| python-version: 3.7 | ||
| - name: Build package | ||
| run: | | ||
| python -m pip install -U pip setuptools wheel | ||
| python setup.py sdist bdist_wheel | ||
| python -m pip install -U pip build | ||
| python -m build | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we are using stb now, we should be using I guess this is a more general question... do we want to use stb commands here or the underlying machinery?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is more "correct" since it's portable across whatever build-backend is used here. Plus, at the cost of sharing how the sausage is made,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is the answer I needed, thanks for the feedback @pradyunsg! |
||
| - name: Publish | ||
| uses: pypa/gh-action-pypi-publish@v1.1.0 | ||
| with: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should quote all the versions (that seems to be the "recommendation" from action authors: https://github.com/actions/setup-python#usage).