Skip to content

Commit 55228a0

Browse files
committed
Merge branch 'main' into sample_pipethrough
2 parents ac04f01 + 281dd60 commit 55228a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+353
-579
lines changed

.azure-pipelines/azure-pipelines.yml

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

.azure-pipelines/ci.yml

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

.azure-pipelines/flake8-validation.py

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

.azure-pipelines/syntax-validation.py

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

.bumpversion.cfg

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

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
36+
uses: github/codeql-action/autobuild@v3
3737

3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v2
39+
uses: github/codeql-action/analyze@v3
4040
with:
4141
category: "/language:${{ matrix.language }}"

.github/workflows/python.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build and Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.x"
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install build
18+
- name: Build distribution
19+
run: python -m build
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
path: ./dist/*
23+
24+
test:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
python-version: ["3.10", "3.11", "3.12"]
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/download-artifact@v4
34+
with:
35+
name: artifact
36+
path: dist
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Install dependencies
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install -r requirements_dev.txt dist/*.whl
45+
- name: Test with pytest
46+
run: |
47+
pytest tests
48+
49+
pypi-publish:
50+
name: Upload release to PyPI
51+
needs: test
52+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
53+
runs-on: ubuntu-latest
54+
environment:
55+
name: release
56+
url: https://pypi.org/workflows
57+
permissions:
58+
id-token: write
59+
steps:
60+
- uses: actions/download-artifact@v4
61+
with:
62+
name: artifact
63+
path: dist
64+
- name: Publish package distributions to PyPI
65+
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0

.mypy.ini

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

0 commit comments

Comments
 (0)