Skip to content

Commit cd20a53

Browse files
still trying to fix release
1 parent aa9e1d3 commit cd20a53

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [ main ]
88
release:
99
types: [published]
10+
workflow_dispatch:
1011

1112
jobs:
1213
test:
@@ -17,19 +18,23 @@ jobs:
1718

1819
steps:
1920
- uses: actions/checkout@v3
21+
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v4
2224
with:
2325
python-version: ${{ matrix.python-version }}
26+
2427
- name: Install system dependencies
2528
run: |
2629
sudo apt-get update
2730
sudo apt-get install -y libmariadb-dev
31+
2832
- name: Install dependencies
2933
run: |
3034
python -m pip install --upgrade pip
3135
pip install -r requirements.txt
3236
pip install -e .
37+
3338
- name: Run tests
3439
run: pytest peepdb/tests
3540

@@ -41,23 +46,34 @@ jobs:
4146

4247
steps:
4348
- uses: actions/checkout@v3
49+
50+
- name: Clean build directories
51+
run: |
52+
rm -rf build/ dist/ *.egg-info/
53+
4454
- name: Set up Python
4555
uses: actions/setup-python@v4
4656
with:
4757
python-version: '3.x'
58+
4859
- name: Install system dependencies
4960
run: |
5061
sudo apt-get update
5162
sudo apt-get install -y libmariadb-dev
63+
5264
- name: Install dependencies
5365
run: |
5466
python -m pip install --upgrade pip
5567
pip install build
68+
5669
- name: Build package
5770
run: python -m build
71+
5872
- name: Publish package to TestPyPI
59-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
73+
uses: pypa/gh-action-pypi-publish@v1.5.1
6074
with:
6175
user: __token__
6276
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
63-
repository_url: https://test.pypi.org/legacy/
77+
repository_url: https://test.pypi.org/legacy/
78+
skip_existing: true
79+
verbose: true

0 commit comments

Comments
 (0)