From 98b5ec18cf614d8df8fc39c1021ff1320218b48d Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 13:45:10 -0300 Subject: [PATCH 1/6] test my py script --- test.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..57af2c1 --- /dev/null +++ b/test.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python + +print("Hello World!") From cd5c041ddc3e2656d67b7137880e93d21f1af599 Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 13:47:36 -0300 Subject: [PATCH 2/6] Update main.yml --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 81b91bd..21e21d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,17 @@ name: A workflow for my Hello World file -on: push +on: + pull_request: + types: [ opened, synchronize, reopened ] + branches: + - main jobs: build: name: Hello world action runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: ./action-a - with: - MY_NAME: "Mona" + - name: 'execute test script' + run: python test.py +# - uses: ./action-a +# with: +# MY_NAME: "Mona" From da6a0dbcf5f8e62c88383d438fe6c7af4b083a89 Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 13:50:24 -0300 Subject: [PATCH 3/6] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 21e21d2..0fc8f8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: 'execute test script' - run: python test.py + run: python --version # - uses: ./action-a # with: # MY_NAME: "Mona" From c9b41b9bff5461de2339f67e0cfd4cf9b0c93855 Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 13:51:53 -0300 Subject: [PATCH 4/6] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0fc8f8d..3267395 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,11 @@ jobs: build: name: Hello world action runs-on: ubuntu-latest + container: + image: python:2.7-stretch + credentials: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} steps: - uses: actions/checkout@v1 - name: 'execute test script' From f9fcaaab6d12c7e55a0d4f2f4f71f112eccc0cc8 Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 14:00:41 -0300 Subject: [PATCH 5/6] Update main.yml --- .github/workflows/main.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3267395..d8c1be0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,13 +6,11 @@ on: - main jobs: build: - name: Hello world action runs-on: ubuntu-latest - container: - image: python:2.7-stretch - credentials: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} + strategy: + matrix: + python-version: [ '2.x', '3.x' ] + name: Python ${{ matrix.python-version }} sample steps: - uses: actions/checkout@v1 - name: 'execute test script' From d48d6f960a3d98dbc4a285c3a4d770196a86ec94 Mon Sep 17 00:00:00 2001 From: Marcio Maciel Date: Fri, 10 Sep 2021 14:01:52 -0300 Subject: [PATCH 6/6] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8c1be0..382480f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,11 @@ jobs: name: Python ${{ matrix.python-version }} sample steps: - uses: actions/checkout@v1 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 - name: 'execute test script' run: python --version # - uses: ./action-a