Skip to content

Commit

Permalink
Adding GH action for pytest v1
Browse files Browse the repository at this point in the history
  • Loading branch information
rarup1 committed May 28, 2024
1 parent b334cfe commit 3baa24c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Pytest

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
# see details (matrix, python-version, python-version-file, etc.)
# https://github.com/actions/setup-python
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- name: Run the automated tests (for example)
run: poetry run pytest -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ This project is licensed under the MIT License.

## Contact

For any questions or issues, please contact [your-email@gmail.com].
For any questions or issues, please contact [ruperarup@gmail.com].

Thank you for using PyGmailCleaner!

0 comments on commit 3baa24c

Please sign in to comment.