Skip to content

Commit 29309ef

Browse files
committed
Linux CI: Upload coverage and deploy in parallel.
1 parent d5b048b commit 29309ef

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/python_ci_linux.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
name: "coverage-${{ matrix.python-version }}"
4444
path: .coverage
4545

46-
finish:
46+
47+
coverage:
4748
needs: tests
4849
runs-on: "ubuntu-18.04"
4950
steps:
@@ -58,7 +59,6 @@ jobs:
5859
- name: Install dependencies 🔧
5960
run: |
6061
python -m pip install --upgrade pip setuptools wheel
61-
python -m pip install --upgrade tox
6262
python -m pip install --upgrade coveralls coverage_pyver_pragma
6363
6464
- name: "Download Coverage"
@@ -87,6 +87,24 @@ jobs:
8787
run: |
8888
coveralls
8989
90+
deploy:
91+
needs: tests
92+
93+
runs-on: "ubuntu-18.04"
94+
steps:
95+
- name: Checkout 🛎️
96+
uses: "actions/checkout@v2"
97+
98+
- name: Setup Python 🐍
99+
uses: "actions/setup-python@v2"
100+
with:
101+
python-version: 3.8
102+
103+
- name: Install dependencies 🔧
104+
run: |
105+
python -m pip install --upgrade pip setuptools wheel
106+
python -m pip install --upgrade tox
107+
90108
- name: Build source distribution 📦
91109
run: |
92110
tox -e build
@@ -102,7 +120,7 @@ jobs:
102120

103121

104122
conda:
105-
needs: tests
123+
needs: deploy
106124
runs-on: "ubuntu-18.04"
107125
steps:
108126
- name: Checkout 🛎️
@@ -112,6 +130,6 @@ jobs:
112130
run: |
113131
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
114132
bash miniconda.sh -b -p $HOME/miniconda
115-
chmod +x .ci/github_deploy_conda.sh
133+
chmod +x .ci/actions_deploy_conda.sh
116134
env:
117135
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

0 commit comments

Comments
 (0)