Skip to content

Commit de0a1ad

Browse files
committed
debugging conda workflow
1 parent 482962a commit de0a1ad

File tree

2 files changed

+37
-17
lines changed

2 files changed

+37
-17
lines changed

.github/workflows/create-release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- name: Checkout code
6262
uses: actions/checkout@v3
6363
with:
64+
ref: v${{ needs.version_check.outputs.PCAPKIT_VERSION }}
6465
fetch-depth: 0
6566

6667
- name: Changelog
@@ -88,6 +89,11 @@ jobs:
8889
tag: "v${{ needs.version_check.outputs.PCAPKIT_VERSION }}"
8990
token: "${{ secrets.GITHUB_TOKEN }}"
9091

92+
- name: Create Tag
93+
uses: rickstaa/action-create-tag@v1
94+
with:
95+
tag: "conda-${{ needs.version_check.outputs.PCAPKIT_VERSION }}+0"
96+
9197
pypi:
9298
name: PyPI distribution for Python ${{ matrix.python-version }}
9399
runs-on: ubuntu-latest
@@ -108,6 +114,7 @@ jobs:
108114
- name: Checkout code
109115
uses: actions/checkout@v3
110116
with:
117+
ref: v${{ needs.version_check.outputs.PCAPKIT_VERSION }}
111118
fetch-depth: 0
112119

113120
- uses: actions/setup-python@v4
@@ -173,6 +180,7 @@ jobs:
173180
steps:
174181
- uses: actions/checkout@v3
175182
with:
183+
ref: v${{ needs.version_check.outputs.PCAPKIT_VERSION }}
176184
fetch-depth: 0
177185

178186
- uses: actions/setup-python@v4
@@ -187,18 +195,6 @@ jobs:
187195
python -m pip install -e .[all]
188196
python -m pip install pathlib2 typing_extensions
189197
190-
- name: Checkout at Version
191-
run: |
192-
set -x
193-
194-
git checkout v$(python -c 'import pcapkit; print(pcapkit.__version__)')
195-
196-
- name: Create Tag
197-
uses: rickstaa/action-create-tag@v1
198-
with:
199-
tag: "conda-${{ needs.version_check.outputs.PCAPKIT_VERSION }}+0"
200-
github_token: ${{ secrets.PYPCAPKIT }}
201-
202198
- name: Setup Conda Distribution
203199
run: |
204200
export PCAPKIT_DEVMODE=1

.github/workflows/cron-conda.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
# branches: [main, ]
88

99
jobs:
10-
conda-update:
10+
get-version:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
@@ -23,14 +23,38 @@ jobs:
2323
set -x
2424
2525
python -m pip install -U pip setuptools wheel
26-
python -m pip install -e .[all]
27-
python -m pip install pathlib2 typing_extensions
26+
python -m pip install -e .
27+
28+
- name: Get Version
29+
id: get_version
30+
run: |
31+
set -x
32+
33+
echo "PCAPKIT_VERSION=$(python -c 'import pcapkit; print(pcapkit.__version__)')" >> $GITHUB_OUTPUT
34+
35+
outputs:
36+
PCAPKIT_VERSION: ${{ steps.get_version.outputs.PCAPKIT_VERSION }}
37+
38+
conda-update:
39+
runs-on: ubuntu-latest
40+
needs: [ get-version ]
41+
steps:
42+
- uses: actions/checkout@v3
43+
with:
44+
ref: v${{ needs.get-version.outputs.PCAPKIT_VERSION }}
45+
fetch-depth: 0
46+
47+
- uses: actions/setup-python@v4
48+
with:
49+
python-version: '3.11'
2850

29-
- name: Checkout at Version
51+
- name: Install and Setup
3052
run: |
3153
set -x
3254
33-
git checkout v$(python -c 'import pcapkit; print(pcapkit.__version__)')
55+
python -m pip install -U pip setuptools wheel
56+
python -m pip install -e .[all]
57+
python -m pip install pathlib2 typing_extensions
3458
3559
- name: Setup Conda Distribution
3660
run: |

0 commit comments

Comments
 (0)