diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 045057c..1d0c892 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/requirements.txt b/requirements.txt index b170d12..dfc6e62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 @@ -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