Skip to content

Commit

Permalink
Remove venv cache
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jul 31, 2020
1 parent b33ab09 commit 325bf28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Cache venv
uses: actions/cache@v1
with:
path: venv
key: ${{ matrix.os }}-${{ matrix.python-version }}-venv-${{ hashFiles('poetry.lock') }}
- name: Install Dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install poetry
poetry install
pip list
Expand All @@ -47,8 +40,7 @@ jobs:
black -l 120 -t py36 -t py37 -t py38 --check .
- name: pytest
run: |
source venv/bin/activate
pytest --cov --cov-report=term --cov-report=xml
poetry run pytest --cov --cov-report=term --cov-report=xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Cache venv
uses: actions/cache@v1
with:
path: venv
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.extra }}-venv-${{ hashFiles('poetry.lock') }}
- name: Build sdist & wheel
run: |
python -m venv venv
source venv/bin/activate
pip install poetry
poetry install --extras ${{ matrix.extra }}
poetry build
Expand Down

0 comments on commit 325bf28

Please sign in to comment.