Skip to content

Commit 50193fd

Browse files
Copilotms609
andauthored
Add Copilot setup workflow for R development environment (#159)
* Initial plan * Add copilot-setup-steps.yml workflow for R development environment Co-authored-by: ms609 <1695515+ms609@users.noreply.github.com> * Fix action versions to match existing workflows (use checkout@v4) Co-authored-by: ms609 <1695515+ms609@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ms609 <1695515+ms609@users.noreply.github.com>
1 parent 1930bc9 commit 50193fd

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# Need contents: read to clone the repository and TreeTools for debugging support
23+
contents: read
24+
25+
# You can define any steps you want, and they will run before the agent starts.
26+
# If you do not check out your code, Copilot will do this for you.
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Set up R
32+
uses: r-lib/actions/setup-r@v2
33+
with:
34+
r-version: 'release'
35+
# Include custom repository for TreeTools and TreeDistData packages
36+
extra-repositories: https://ms609.github.io/packages/
37+
38+
- name: Install system dependencies (Linux)
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y texlive-latex-base libglpk-dev texlive-fonts-recommended
42+
43+
- name: Set up R dependencies
44+
uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
extra-packages: |
47+
ms609/TreeDistData
48+
devtools
49+
testthat
50+
roxygen2
51+
lintr
52+
needs: |
53+
check
54+
55+
- name: Checkout TreeTools source (for debugging support)
56+
uses: actions/checkout@v4
57+
with:
58+
repository: ms609/TreeTools
59+
path: TreeTools-source
60+
# This provides access to TreeTools source code for agents to inspect
61+
# when debugging issues in TreeDist that may relate to TreeTools

0 commit comments

Comments
 (0)