Update README.md #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |