Skip to content

Commit

Permalink
Adding GH actions exercise solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 11, 2024
1 parent 5e62741 commit 39596ef
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/exercise1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Exercise1
on:
- push

jobs:
exercise1:
runs-on: "ubuntu-24.04"
steps:
- run: echo "hello"

23 changes: 23 additions & 0 deletions .github/workflows/exercise2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Exercise2
on:
- push

jobs:
exercise2:
runs-on: "ubuntu-24.04"

steps:
# Checkout this repository
- uses: actions/checkout@v4

# Setup the specified Python version
- name: "Set up Python 3.12"
uses: actions/setup-python@v5
with:
python-version: "3.12"

- run: echo "hello"

- run: python --version

28 changes: 28 additions & 0 deletions .github/workflows/exercise3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Exercise3
on:
- push

jobs:
exercise3:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
platform: ["ubuntu-24.04"]
runs-on: ${{ matrix.platform }}

steps:
# Checkout this repository
- uses: actions/checkout@v4

# Setup the specified Python version
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- run: echo "hello"

- run: python --version

28 changes: 28 additions & 0 deletions .github/workflows/exercise4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Exercise4
on:
- push

jobs:
exercise4:

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
platform: ["ubuntu-24.04", "windows-2022"]
runs-on: ${{ matrix.platform }}

steps:
# Checkout this repository
- uses: actions/checkout@v4

# Setup the specified Python version
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- run: echo "hello"

- run: python --version

0 comments on commit 39596ef

Please sign in to comment.