diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6501e1f --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 7531778..74541f4 100644 --- a/README.md +++ b/README.md @@ -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! \ No newline at end of file