Skip to content

Commit

Permalink
Fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 29, 2024
1 parent a6437bc commit ac3d140
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 51 deletions.
63 changes: 30 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,40 @@
name: Run Tests

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
push:
branches:
- "**"

jobs:
test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
pip install -e .
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
pip install -e .
- name: Run tests
run: |
pytest tests/
- name: Run tests
run: |
pytest tests/
149 changes: 148 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# pyproject.toml
[tool.poetry]
name = "d2x"
version = "0.1.2"
description = "Salesforce DevOps Helper"
description = "Composable Salesforce DevOps on GitHub"
authors = ["Muselab LLC"]
license = "BSD3"
readme = "README.md"
Expand All @@ -15,14 +16,12 @@ requests = "^2.28.1"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pip-tools = "^7.4.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pip-compile]
generate-hashes = true
requirements = [
"requirements/production.in",
"requirements/development.in"
]
output-file = "requirements.txt"
71 changes: 62 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,64 @@
# This file is auto-generated by pip-compile
# To update, run:
#
# pip-compile requirements/production.in
# pip-compile requirements/development.in

rich==13.9.3
pydantic==2.9.2
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile pyproject.toml
#
annotated-types==0.7.0
# via pydantic
arrow==1.3.0
# via cookiecutter
binaryornot==0.4.4
# via cookiecutter
certifi==2024.8.30
# via requests
chardet==5.2.0
# via binaryornot
charset-normalizer==3.4.0
# via requests
click==8.1.7
# via cookiecutter
cookiecutter==2.6.0
requests==2.28.1
pytest==8.3.3
# via d2x (pyproject.toml)
idna==3.10
# via requests
jinja2==3.1.4
# via cookiecutter
markdown-it-py==3.0.0
# via rich
markupsafe==3.0.2
# via jinja2
mdurl==0.1.2
# via markdown-it-py
pydantic==2.9.2
# via d2x (pyproject.toml)
pydantic-core==2.23.4
# via pydantic
pygments==2.18.0
# via rich
python-dateutil==2.9.0.post0
# via arrow
python-slugify==8.0.4
# via cookiecutter
pyyaml==6.0.2
# via cookiecutter
requests==2.32.3
# via
# cookiecutter
# d2x (pyproject.toml)
rich==13.9.3
# via
# cookiecutter
# d2x (pyproject.toml)
six==1.16.0
# via python-dateutil
text-unidecode==1.3
# via python-slugify
types-python-dateutil==2.9.0.20241003
# via arrow
typing-extensions==4.12.2
# via
# pydantic
# pydantic-core
urllib3==2.2.3
# via requests
3 changes: 0 additions & 3 deletions requirements_dev.in

This file was deleted.

0 comments on commit ac3d140

Please sign in to comment.