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 72368de
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/issue-63-repro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Issue #63 Repro"

on:
push:
branches:
- "*"

jobs:
test-version-unset:
name: Test Version Unset
runs-on: ubuntu-latest

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

- name: Setup Python
uses: ./

test-version-falsey:
name: Test Version Falsey
runs-on: ubuntu-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: ubuntu-latest

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

- name: Setup Python
uses: ./
with:
python-version: ''
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2652,6 +2652,8 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
let version = core.getInput('python-version');
core.info("version key type: " + typeof (version));
core.info("version key value: " + "'" + version + "'");
if (version) {
const arch = core.getInput('architecture') || os.arch();
if (isPyPyVersion(version)) {
Expand Down
2 changes: 2 additions & 0 deletions src/setup-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ function isPyPyVersion(versionSpec: string) {
async function run() {
try {
let version = core.getInput('python-version');
core.info("version key type: " + typeof(version));
core.info("version key value: " + "'" + version + "'");
if (version) {
const arch: string = core.getInput('architecture') || os.arch();
if (isPyPyVersion(version)) {
Expand Down

0 comments on commit 72368de

Please sign in to comment.