forked from avinashkranjan/Amazing-Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (27 loc) · 744 Bytes
/
python.yml
File metadata and controls
34 lines (27 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Setup Python
on:
push:
workflow_dispatch:
jobs:
echo-python-setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Python
uses: actions/setup-python@v4.6.0
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: python -m unittest discover
- name: Create Staging Directory
run: mkdir staging && cp -r src/* staging
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.0
with:
name: Package_Python
path: staging