Improve GitHub Actions Security #2270
Workflow file for this run
This file contains 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 3.8 - Min Dep Test WorkFlow | |
on: | |
pull_request: | |
branches: [main, develop] | |
# Restrict permissions by default | |
permissions: | |
contents: read # Required for checkout | |
checks: write # Required for test reporting | |
jobs: | |
build-min-dep-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
fail-fast: false # Continue with other steps if one fails | |
steps: | |
- name: ποΈ Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: π Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v5.0.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
check-latest: true | |
- name: π¦ Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install \ | |
attrs==23.1.0 \ | |
certifi==2023.7.22 \ | |
charset-normalizer==2.0.12 \ | |
cycler==0.12.1 \ | |
exceptiongroup==1.1.3 \ | |
fonttools==4.43.1 \ | |
idna==3.4 \ | |
iniconfig==2.0.0 \ | |
kiwisolver==1.4.5 \ | |
matplotlib==3.5.0 \ | |
numpy==1.21.2 \ | |
opencv-python==4.5.5.64 \ | |
Pillow==10.1.0 \ | |
packaging==23.2 \ | |
pluggy==1.3.0 \ | |
pyparsing==3.1.1 \ | |
pytest==7.2.0 \ | |
python-dateutil==2.8.2 \ | |
PyYAML==5.3 \ | |
requests==2.26.0 \ | |
scipy==1.10.0 \ | |
setuptools-scm==8.0.4 \ | |
six==1.16.0 \ | |
tomli==2.0.1 \ | |
tqdm==4.62.3 \ | |
typing_extensions==4.8.0 \ | |
urllib3==1.26.18 \ | |
defusedxml==0.7.1 | |
- name: π§ͺ Test | |
run: "python -m pytest ./test" |