Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ca19a83

Browse files
Create python7.yml
1 parent db17841 commit ca19a83

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

‎.github/workflows/python7.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Setup1 Python
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
echo-python-setup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4.2.2
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v4.6.0
16+
with:
17+
python-version: '3.9'
18+
19+
- name: Install Dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
if [ -f requirements.txt ]; then pip install -r requirements.txt; else echo "No requirements.txt found, skipping dependency installation"; fi
23+
24+
- name: Run Tests
25+
run: python -m unittest discover
26+
27+
- name: Create Staging Directory
28+
run: mkdir staging && cp -r src/* staging
29+
30+
- name: Upload a Build Artifact
31+
uses: actions/upload-artifact@v4.6.0
32+
with:
33+
name: Package_Python
34+
path: staging

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /