Skip to content

Bump urllib3 from 1.24.2 to 2.5.0 in /flatten #57

Bump urllib3 from 1.24.2 to 2.5.0 in /flatten

Bump urllib3 from 1.24.2 to 2.5.0 in /flatten #57

name: Python application
on:
workflow_dispatch:
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Cache Python
id: cache-python
uses: actions/cache/restore@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Cache Python
if: steps.cache-python.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ steps.cache-python.outputs.cache-primary-key }}
- name: Test with unittest
run: |
python -m unittest discover tests