You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 📝 **Note:** There is no need to push changes back to the repo during the workshop
60
+
> [!NOTE]
61
+
> There is no need to push changes back to the repo during the workshop
61
62
62
63
### 3. Verify Python is installed and set correctly
63
64
@@ -365,7 +366,7 @@ There are a couple of bonus challenges if you've completed all the tasks and you
365
366
### Bonus Challenge 1 - Create a robust CLI tool
366
367
367
368
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
368
-
Optional: [🚀 Turbo Boost! (1/2) 33%]
369
+
Optional: [🚀 Turbo Boost! (1/2) 50%]
369
370
370
371
- Use GitHub Copilot chat with the `@workspace` prefix to convert the project into a CLI with options and a help menu
371
372
- Ensure that the prompt specifies no external dependencies and it should only use the standard library
@@ -422,8 +423,8 @@ if __name__ == "__main__":
422
423
### Bonus Challenge 2 - Document your project
423
424
424
425
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
425
-
Optional: [🚀 Turbo Boost! (1/2) 33%]
426
-
Optional: [🌟 Extra Points! (2/2) 66%]
426
+
Optional: [🚀 Turbo Boost! (1/2) 50%]
427
+
Optional: [🌟 Extra Points! (2/2) 100% 🏆]
427
428
428
429
- Create a new `docs/` folder and a file called `README.md`
429
430
- Use GitHub Copilot chat with the `@workspace` prefix to get started documenting your project using Markdown in a README.md
@@ -540,83 +541,6 @@ This project is licensed under the MIT License. See the [LICENSE](../LICENSE) fi
540
541
541
542
</details>
542
543
543
-
### Bonus Challenge 3 - Automate the data transformation
544
-
545
-
Progress: [🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢] 12/12 (100%) 🎉
546
-
Optional: [🚀 Turbo Boost! (1/2) 33%]
547
-
Optional: [🌟 Extra Points! (2/2) 66%]
548
-
Optional: [🏆 Triple Threat! (2/2) 100%]
549
-
550
-
- Create a new file called `transform-data.yaml` in the `.github/workflows/` directory.
551
-
- Use GitHub Copilot chat with the `@workspace` prefix to create a GitHub Action that will transform the data whenever a push or pull request is made to the repository.
552
-
- Open a pull request to test the action. If any errors occur, use the GitHub Copilot chat to help you fix them.
553
-
554
-
<details>
555
-
<summary>Cheatsheet</summary>
556
-
557
-
#### Prompt
558
-
559
-
```shell
560
-
@workspace Generate a GitHub action that transforms the data on every push and pull request
561
-
```
562
-
563
-
#### Expected output
564
-
565
-
```markdown
566
-
To create a GitHub Action that will transform the data using your CLI, you can create a workflow file in the `.github/workflows` directory. Here is an example of a GitHub Action workflow file named `transform-data.yml`:
567
-
568
-
```yaml
569
-
name: Transform Data
570
-
571
-
on:
572
-
push:
573
-
branches:
574
-
- main
575
-
workflow_dispatch:
576
-
577
-
jobs:
578
-
transform:
579
-
runs-on: ubuntu-latest
580
-
581
-
steps:
582
-
- name: Checkout repository
583
-
uses: actions/checkout@v2
584
-
585
-
- name: Set up Python
586
-
uses: actions/setup-python@v2
587
-
with:
588
-
python-version: '3.x'
589
-
590
-
- name: Install dependencies
591
-
run: |
592
-
python -m venv venv
593
-
source venv/bin/activate
594
-
pip install pandas
595
-
596
-
- name: Run data transformation
597
-
run: |
598
-
source venv/bin/activate
599
-
python workshop/main.py run_all
600
-
601
-
- name: Upload transformed data
602
-
uses: actions/upload-artifact@v4
603
-
with:
604
-
name: transformed-data
605
-
path: workshop/transformed_train.csv
606
-
```
607
-
608
-
This workflow will:
609
-
610
-
* Trigger on pushes to the main branch and on manual dispatch.
611
-
* Check out the repository.
612
-
* Set up Python.
613
-
* Install the necessary dependencies (in this case, pandas).
614
-
* Run the data transformation using the run_all command from your CLI.
615
-
* Upload the transformed data as an artifact.
616
-
```
617
-
618
-
</details>
619
-
620
544
## Clean-up
621
545
622
546
### 1. Delete your Codespace
@@ -626,13 +550,3 @@ This workflow will:
626
550
Before deleting, if you wish, you can push your changes. Remember workshop repositories are temporary too.
627
551
628
552
Go to [https://github.com/codespaces](https://github.com/codespaces) and find your current running Codespace and delete it.
629
-
630
-
## Additional resources
631
-
632
-
If you want to learn more about using GitHub Copilot, check out these resources:
* [VS Code video series: GitHub Copilot](https://www.youtube.com/playlist?list=PLj6YeMhvp2S7rQaCLRrMnzRdkNdKnMVwg)
636
-
* [Blog: Best practices for prompting Copilot](http://blog.pamelafox.org/2023/06/best-practices-for-prompting-github.html)
637
-
638
-
Also check out the [GitHub Foundations learning path](https://learn.microsoft.com/training/paths/github-foundations/) for more resources on GitHub and GitHub Copilot.
0 commit comments