-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.58 KB
/
python-ci.yml
File metadata and controls
52 lines (43 loc) · 1.58 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Python CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory-fileupload: "./Path Manipulation/while File Upload/python"
working-directory-fileread: "./Path Manipulation/while File Read/python"
working-directory-unrestricted-fileupload: "./Unrestriced File Upload/python"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Dependencies for Path Manipulation while File Upload
working-directory: ${{ env.working-directory-fileupload }}
run: |
python -m pip install --upgrade pip
pip install .
- name: Install Dependencies for Path Manipulation while File Read
working-directory: ${{ env.working-directory-fileread }}
run: |
python -m pip install --upgrade pip
pip install .
- name: Install Dependencies for Unrestricted File Upload
working-directory: ${{ env.working-directory-unrestricted-fileupload }}
run: |
python -m pip install --upgrade pip
pip install .
- name: Run tests for Path Manipulation while File Upload
working-directory: ${{ env.working-directory-fileupload }}
run: |
python -m pytest
- name: Run tests for Unrestricted File Upload
working-directory: ${{ env.working-directory-unrestricted-fileupload }}
run: |
python -m pytest