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 5908393
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,24 @@ on:
- synchronize
- closed

# TODO: Use some kind of cache to speed up running.
# TODO: Eliminate duplication.
jobs:
setup:
test-main-python:
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 }}

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
python-version: "3.12"

- name: Install Dependencies
run: |
pip install -e .
pip install -r requirements.txt
pip install -e .
test-main-python:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Unit Tests
run: coverage run -m pytest -s tests

Expand All @@ -51,8 +39,19 @@ jobs:
pre-commit run --all-files
test-matrix:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install -e .
- name: Run Test Matrix
run: tox run --skip-env ${{ outputs.main-python-version }}
run: tox run --skip-env py3.12
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 5908393

Please sign in to comment.