Skip to content

Commit a117dc5

Browse files
CopilotShreckYe
andcommitted
Add copilot-setup-steps.yml adapting from build.yml
Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com>
1 parent d2a5dd8 commit a117dc5

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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-22.04
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+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
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+
with:
31+
fetch-depth: 10
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: '3.10'
37+
architecture: 'x64'
38+
39+
- name: Install Python dependencies
40+
run: |
41+
# Install Python packages needed by the toolset
42+
pip3 install --break-system-packages \
43+
docker==7.0.0 \
44+
mysqlclient==2.2.4 \
45+
pymongo==4.7.2
46+
47+
- name: Build TFB Docker image
48+
run: |
49+
# Build the TechEmpower Framework Benchmarks Docker image
50+
docker build \
51+
--file ./Dockerfile \
52+
--build-arg USER_ID=$(id -u) \
53+
--build-arg GROUP_ID=$(id -g) \
54+
--tag techempower/tfb .

0 commit comments

Comments
 (0)