Skip to content

Commit

Permalink
Use pytest (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Dec 19, 2024
1 parent f33aae8 commit 1a635dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: uv run --with python-dateutil --with six test.py
run: scripts/test

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
Expand Down
5 changes: 5 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -e

set -x # print executed commands to the terminal

uvx --with python-dateutil --with six pytest "${@}"
9 changes: 0 additions & 9 deletions test.py

This file was deleted.

0 comments on commit 1a635dc

Please sign in to comment.