Skip to content

Commit

Permalink
chore(ci): add repro for issue actions#63
Browse files Browse the repository at this point in the history
  • Loading branch information
loozhengyuan committed Oct 25, 2021
1 parent feeaa3b commit 4ff9851
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/issue-63-repro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Issue #63 Repro"

on:
push:
branches:
- "*"

jobs:
test-version-unset:
name: Test Version Unset
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: ./
with:
python-version: 2.7

test-version-falsey:
name: Test Version Falsey
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: ./
with:
python-version: false

test-version-empty:
name: Test Version Empty
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: ./
with:
python-version: ''
1 change: 1 addition & 0 deletions src/setup-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function isPyPyVersion(versionSpec: string) {
async function run() {
try {
let version = core.getInput('python-version');
core.info("version: " + version)
if (version) {
const arch: string = core.getInput('architecture') || os.arch();
if (isPyPyVersion(version)) {
Expand Down

0 comments on commit 4ff9851

Please sign in to comment.