Skip to content

Commit

Permalink
Update requirements.txt after adding tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ebram96 committed Jan 14, 2024
1 parent 4837f55 commit 7dee4ac
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
43 changes: 33 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,47 @@ on:
- synchronize
- closed

env:
MAIN_PYTHON_VERSION: "3.12"

jobs:
setup:
runs-on: ubuntu-latest
outputs:
main-python-version: "3.12"
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ outputs.main-python-version }}
python-version: "3.12"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
path: "~/.cache/pip/"
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
pip install -e .
pip install -r requirements.txt
run: pip install -r requirements.txt

test-main-python:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Restore Dependencies Cache
uses: actions/cache@v3
with:
path: "~/.cache/pip/"
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
pip install -e .
pip install -r requirements.txt
- name: Unit Tests
run: coverage run -m pytest -s tests

Expand All @@ -51,8 +62,20 @@ jobs:
pre-commit run --all-files
test-matrix:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Restore Dependencies Cache
uses: actions/cache@v3
with:
path: "~/.cache/pip/"
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
pip install -e .
pip install -r requirements.txt
- name: Run Test Matrix
run: tox run --skip-env ${{ outputs.main-python-version }}
run: tox run --skip-env $MAIN_PYTHON_VERSION
8 changes: 7 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
cachetools==5.3.2
certifi==2023.11.17
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.3.2
colorama==0.4.6
coverage==7.4.0
distlib==0.3.8
exceptiongroup==1.2.0
filelock==3.13.1
identify==2.5.33
idna==3.6
Expand All @@ -12,12 +16,14 @@ packaging==23.2
platformdirs==4.1.0
pluggy==1.3.0
pre-commit==3.6.0
pyproject-api==1.6.1
pytest==7.4.4
pytest-mock==3.12.0
PyYAML==6.0.1
requests==2.31.0
requests-mock==1.11.0
setuptools==69.0.3
six==1.16.0
tomli==2.0.1
tox==4.12.0
urllib3==2.1.0
virtualenv==20.25.0

0 comments on commit 7dee4ac

Please sign in to comment.