Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 31, 2025
1 parent aa80d38 commit ec9717d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ jobs:
with:
python-version: 3.x

- name: Install pre-commit
env:
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
run: |
uv tool install --with=pre-commit-uv pre-commit
pre-commit --version
- name: Install twine
env:
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
run: |
uv tool install twine
twine --version
- name: Install Nox
env:
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
Expand All @@ -63,6 +49,8 @@ jobs:
nox --version
- name: Run Nox
env:
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
run: |
nox --session=test_cookiecutter
Expand Down
16 changes: 7 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,8 @@ def test_cookiecutter(session: nox.Session, replay_file_path: Path) -> None:
if cc_test_output.exists():
session.run("rm", "-fr", str(cc_test_output), external=True)

session.install(".")
session.install("cookiecutter")

session.run(
"uvx",
"cookiecutter",
"--replay-file",
str(replay_file),
Expand All @@ -233,19 +231,19 @@ def test_cookiecutter(session: nox.Session, replay_file_path: Path) -> None:
ruff_toml.write(RUFF_OVERRIDES)

# Use the local singer-sdk
session.run("uv", "add", f"singer-sdk @ {sdk_dir}", external=True)
session.run("uv", "add", f"singer-sdk @ {sdk_dir}")

# Check that the project can be installed for development
session.run("uv", "lock", external=True)
session.run("uv", "sync", external=True)
session.run("uv", "lock")
session.run("uv", "sync")

# Check that the project can be built for distribution
session.run("uv", "build", external=True)
session.run("twine", "check", "dist/*", external=True)
session.run("uv", "build")
session.run("uvx", "twine", "check", "dist/*")

session.run("git", "init", "-b", "main", external=True)
session.run("git", "add", ".", external=True)
session.run("pre-commit", "run", "--all-files", external=True)
session.run("uvx", "pre-commit", "run", "--all-files", external=True)


@nox.session(name="version-bump")
Expand Down

0 comments on commit ec9717d

Please sign in to comment.