From 3164f56406aef8661cb1a4709922d5546381f7d6 Mon Sep 17 00:00:00 2001 From: Heiko Nickerl Date: Wed, 4 Aug 2021 14:43:28 +0200 Subject: [PATCH] chore: test --- .github/workflows/check.yaml | 5 +---- .github/workflows/release.yaml | 8 +++++--- Makefile | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 03b3c7f..dd01c09 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -15,15 +15,12 @@ jobs: with: python-version: '3.9.2' - - name: Install virtualenv - run: sudo pip install virtualenv - - name: Restore dependencies from cache id: cache uses: actions/cache@v2 with: path: venv - key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} + key: ${{ runner.os }}-main-venv-${{ hashFiles('setup.py') }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d15917..2012dda 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,14 +8,16 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):') runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 token: ${{ secrets.ADMIN_GITHUB_TOKEN }} + + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Semantic Release run: | pip install python-semantic-release diff --git a/Makefile b/Makefile index 9475a3f..31d71aa 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ logs: .PHONY: logs venv: setup.py - virtualenv venv -p $(shell which python) + python -m venv venv ${activate} && pip install '.[dev]' @touch venv