Skip to content

Commit 113cff8

Browse files
committed
ci updates
1 parent 197d9bb commit 113cff8

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.github/workflows/debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: sudo bash debian/install_pkg_build_deps.sh
2020

2121
- name: Create Debian Package
22-
run: make clean package
22+
run: make clean install_test_requirements package
2323

2424
- name: Upload Artifacts to GitHub
2525
uses: actions/upload-artifact@master

.github/workflows/python-publish_to_pypi.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,31 @@ on:
88

99
jobs:
1010
deploy:
11-
permissions:
12-
id-token: write
1311

1412
runs-on: ubuntu-20.04
1513

14+
permissions:
15+
id-token: write # IMPORTANT: mandatory for trusted publishing
16+
1617
steps:
1718
- uses: actions/checkout@v2
19+
1820
- name: Set up Python
1921
uses: actions/setup-python@v2
2022
with:
2123
python-version: '3.x'
24+
2225
- name: Install dependencies
2326
run: |
2427
python3 -m pip install --upgrade pip
25-
python3 -m pip install setuptools wheel twine
28+
python3 -m pip install setuptools wheel twine build
29+
2630
- name: Build
2731
run: |
28-
python3 setup.py sdist bdist_wheel
32+
python3 -m build
33+
2934
- name: Publish package
3035
uses: pypa/gh-action-pypi-publish@release/v1
31-
with:
32-
user: __token__
33-
password: ${{ secrets.PYPI_API_TOKEN }}
36+
# with:
37+
# user: __token__
38+
# password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-test_and_lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,33 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16+
# python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1617
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1718

1819
steps:
1920
- uses: actions/checkout@v2
21+
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v2
2224
with:
2325
python-version: ${{ matrix.python-version }}
26+
2427
- name: Install test requirements
2528
run: |
2629
make install_test_requirements
30+
2731
- name: Install package itself (editable)
2832
run: |
2933
make editable
34+
3035
- name: Lint with pylint
3136
run: |
3237
make pylint
38+
3339
- name: Lint with flake8
3440
run: |
3541
make flake8
42+
3643
- name: Test with pytest-cov
3744
run: |
3845
make test_cov

0 commit comments

Comments
 (0)