Skip to content

Commit

Permalink
ci: setup attempt #12
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyk committed Dec 17, 2024
1 parent 8105409 commit 0962402
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ env:
permissions: {}

jobs:
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: 3.13

- name: Install pre-commit
run: uv tool install pre-commit-uv

- name: Run pre-commit
run: uv run pre-commit run --all-files --show-diff-on-failure

tests:
name: Tests with ${{ matrix.env }}
runs-on: ubuntu-latest
Expand All @@ -37,7 +54,7 @@ jobs:
cache-dependency-glob: "**/pyproject.toml"

- name: Install tox
run: uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
run: uv tool install tox --with tox-uv

- name: Setup tests
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,4 @@ env_list = ["3.10", "3.11", "3.12"]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
with_dev = true
# allowlist_externals = ["make"]
# commands_pre = [["pre-commit", "install", "-f" ,"--install-hooks"]]
commands = [["pytest"]]

0 comments on commit 0962402

Please sign in to comment.