Skip to content

Commit 8004fc3

Browse files
committed
Easy does it
1 parent 3bb62b8 commit 8004fc3

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

.github/workflows/merge.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: Latest release
66
env:
77
CACHE_VERSION: 1
88
DEFAULT_PYTHON: 3.9
9-
PRE_COMMIT_HOME: ~/.cache/pre-commit
109

1110
# Only run on merges
1211
on:
@@ -16,39 +15,6 @@ on:
1615
- main
1716

1817
jobs:
19-
# Prepare default python version environment
20-
prepare:
21-
runs-on: ubuntu-latest
22-
name: Prepare
23-
steps:
24-
- name: Check out committed code
25-
uses: actions/checkout@v2
26-
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
27-
id: python
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: ${{ env.DEFAULT_PYTHON }}
31-
- name: Restore base Python ${{ env.DEFAULT_PYTHON }} virtual environment
32-
id: cache-venv
33-
uses: actions/cache@v2
34-
with:
35-
path: venv
36-
key: >-
37-
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
38-
steps.python.outputs.python-version }}-${{
39-
hashFiles('setup.py') }}
40-
restore-keys: |
41-
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('setup.py') }}
42-
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
43-
- name: Create Python virtual environment
44-
if: steps.cache-venv.outputs.cache-hit != 'true'
45-
run: |
46-
python -m venv venv
47-
. venv/bin/activate
48-
pip install -U pip setuptools
49-
pip install -e .
50-
pip install -r requirements_test.txt
51-
5218
publishing:
5319
name: Build and publish Python 🐍 distributions 📦 to PyPI
5420
runs-on: ubuntu-latest
@@ -63,20 +29,6 @@ jobs:
6329
uses: actions/setup-python@v2
6430
with:
6531
python-version: ${{ env.DEFAULT_PYTHON }}
66-
- name: Restore base Python ${{ env.DEFAULT_PYTHON }} virtual environment
67-
id: cache-venv
68-
uses: actions/cache@v2
69-
with:
70-
path: venv
71-
key: >-
72-
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
73-
steps.python.outputs.python-version }}-${{
74-
hashFiles('setup.py') }}
75-
- name: Fail job if Python cache restore failed
76-
if: steps.cache-venv.outputs.cache-hit != 'true'
77-
run: |
78-
echo "Failed to restore Python virtual environment from cache"
79-
exit 1
8032
- name: Build a distribution
8133
run: >-
8234
python setup.py sdist

0 commit comments

Comments
 (0)