generated from github/actions-learning-pathway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing a new type of CI_CD workflow
- Loading branch information
Showing
3 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
#name: hello-world | ||
#on: push | ||
#jobs: | ||
# hello-world-job: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out repository code | ||
# uses: actions/checkout@v4 | ||
# - run: echo "$(cat hello_world.txt)" | ||
|
||
name: hello-world | ||
on: push | ||
jobs: | ||
hello-world-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: echo "$(cat hello_world.txt)" | ||
upload-sample-file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
- name: Run script | ||
working-directory: ./src | ||
run: python create_file.py | ||
- name: Upload sample file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sample-file | ||
path: ./output_files/sample_file.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
requests=2.32.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This is a test script that creates a file which I can then upload as artifact on Github | ||
|
||
with open('../output_files/sample_file.txt', mode='w') as w: | ||
w.write('My name is Moe\nI just started as an employee at Ansys') |