Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,24 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Installing requirements
run: pip install -e '.[dev]'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV

- name: Running tests
run: pytest
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-

- name: Install dependencies with Poetry
run: |
poetry install --with dev

- name: Run tests
run: |
poetry run pytest
24 changes: 15 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
SHELL:=/bin/bash

check:
poetry check

install:
pip3 install .
poetry install

install-dev:
pip3 install -e '.[dev]'
poetry install --with dev

test:
pytest $(ARGS)
poetry run pytest $(ARGS)

init-virtual-env:
./scripts/venv/init.sh
build:
poetry build

google-auth:
python3 ./scripts/google/authenticate.py
publish-locally:
eval $(shell poetry env activate) && python3 -m pip install dist/googledrive-*.tar.gz

clean:
rm -rf build .pytest_cache dist google_drive.egg-info
publish:
poetry publish --dry-run

release:
./scripts/release/release.sh

clean:
rm -rf build .pytest_cache dist google_drive.egg-info
Loading