Skip to content

Commit

Permalink
Add action for unit tests (#5)
Browse files Browse the repository at this point in the history
* Add action for unit tests

* Skip conftest

* Test cli

* Re-enable conftest

* Add pytest arguments
  • Loading branch information
lecriste authored Nov 14, 2024
1 parent 4b0f5b4 commit 3982387
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: On pull request push

on:
pull_request:
branches:
- "*"

jobs:
tests:
name: Run test suites
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Install Python dependencies
run: pip install .[dev]

- name: Run unit tests
env:
TEST_FOLDER: tests
run: pytest tests/test_token_fetcher_cli.py --service_username "serv_user"
--service_password "serv_pass" --regular_username "reg_user"
--regular_password "reg_pass" --color yes

0 comments on commit 3982387

Please sign in to comment.