-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Github Actions
committed
May 23, 2020
1 parent
765f39e
commit 00f93f5
Showing
1 changed file
with
22 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,28 @@ a GitHub action to install (pre-release) pythons from [deadsnakes] | |
### using this action | ||
|
||
To use this action, add it adjacent to `setup-python` and opt into it | ||
conditionally. Here's an example which uses `python` as a matrix. | ||
conditionally. Here's an example which uses `python-version` as a matrix. | ||
|
||
```yaml | ||
TODO!!!! | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9-dev] | ||
name: main | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
if: matrix.python-version != '3.9-dev' | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: deadsnakes/[email protected] | ||
if: matrix.python-version == '3.9-dev' | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: python --version --version && which python | ||
``` |