Skip to content

Commit 4b14572

Browse files
committed
Fix CI workflows
1 parent 728a402 commit 4b14572

5 files changed

Lines changed: 17 additions & 104 deletions

File tree

‎.github/workflows/pdm.yml‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.github/workflows/pylint.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows/python-package-conda.yml‎

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,29 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
4-
name: Python package
1+
name: Build Python Package
52

63
on:
74
push:
85
branches: [ "master" ]
96
pull_request:
107
branches: [ "master" ]
118

9+
permissions:
10+
contents: read
11+
1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
fail-fast: false
1817
matrix:
19-
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2119

2220
steps:
23-
- uses: actions/checkout@v4
24-
- name: Setup Python # Set Python version
25-
uses: actions/setup-python@v4
21+
- uses: actions/checkout@v7
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v7
2624
with:
2725
python-version: ${{ matrix.python-version }}
28-
cache: 'pip'
29-
# Install pip and pytest
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install pytest
34-
- name: Test with pytest
35-
run: pytest tests.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
36-
- name: Upload pytest test results
37-
uses: actions/upload-artifact@v3
38-
with:
39-
name: pytest-results-${{ matrix.python-version }}
40-
path: junit/test-results-${{ matrix.python-version }}.xml
41-
# Use always() to always run this step to publish test results when there are test failures
42-
if: ${{ always() }}
26+
- name: Install build frontend
27+
run: python -m pip install --upgrade pip build
28+
- name: Build distributions
29+
run: python -m build

‎.github/workflows/python-publish.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@ on:
1818
description: Git tag or commit to publish
1919
required: true
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
deploy:
2326
runs-on: ubuntu-latest
2427
steps:
25-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v7
2629
with:
2730
ref: ${{ inputs.ref || github.ref }}
2831
- name: Set up Python
29-
uses: actions/setup-python@v4
32+
uses: actions/setup-python@v7
3033
with:
3134
python-version: '3.x'
3235
- name: Install dependencies

0 commit comments

Comments
 (0)