Skip to content

Commit

Permalink
Merge branch 'main' into warn_no_recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Oct 30, 2024
2 parents 2dc2b12 + 281dd60 commit c850f96
Show file tree
Hide file tree
Showing 46 changed files with 350 additions and 574 deletions.
131 changes: 0 additions & 131 deletions .azure-pipelines/azure-pipelines.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .azure-pipelines/ci.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .azure-pipelines/flake8-validation.py

This file was deleted.

32 changes: 0 additions & 32 deletions .azure-pipelines/syntax-validation.py

This file was deleted.

16 changes: 0 additions & 16 deletions .bumpversion.cfg

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
65 changes: 65 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build distribution
run: python -m build
- uses: actions/upload-artifact@v4
with:
path: ./dist/*

test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt dist/*.whl
- name: Test with pytest
run: |
pytest tests
pypi-publish:
name: Upload release to PyPI
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/workflows
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
2 changes: 0 additions & 2 deletions .mypy.ini

This file was deleted.

Loading

0 comments on commit c850f96

Please sign in to comment.