Skip to content

Commit 00f93f5

Browse files
author
Github Actions
committed
Deployed to github pages
1 parent 765f39e commit 00f93f5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,28 @@ a GitHub action to install (pre-release) pythons from [deadsnakes]
1010
### using this action
1111

1212
To use this action, add it adjacent to `setup-python` and opt into it
13-
conditionally. Here's an example which uses `python` as a matrix.
13+
conditionally. Here's an example which uses `python-version` as a matrix.
1414

1515
```yaml
16-
TODO!!!!
16+
on:
17+
push:
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python-version: [3.6, 3.7, 3.8, 3.9-dev]
25+
name: main
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-python@v2
29+
if: matrix.python-version != '3.9-dev'
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- uses: deadsnakes/[email protected]
33+
if: matrix.python-version == '3.9-dev'
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- run: python --version --version && which python
1737
```

0 commit comments

Comments
 (0)