Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .coveragerc

This file was deleted.

22 changes: 8 additions & 14 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@ name: Lint
on: push

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
- uses: actions/checkout@v4

- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/.local/bin
make install
pixi-version: v0.39.0

- name: Run Lint
run: |
make lint
run: pixi run lint
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's needed to make this work? I assume the version number in pyproject.toml needs to be updated too? Add a check to ensure pyproject.toml and the tag version match. Create a draft release with the name being the version.


on:
push:
tags:
- "v*"

jobs:
publish-pypi:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.39.0

- name: Build package
run: pixi run build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
23 changes: 8 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@ name: Tests
on: push

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
- uses: actions/checkout@v4

- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
python-version: '3.9'
- name: Install dependencies
run: |
apt update && apt install -y build-essential
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/.local/bin
make install
pixi-version: v0.39.0

- name: Run Tests
run: |
make test CI=true
run: pixi run test

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This includes python, c and c++ tests as well?

20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Icon*
/build/
/dist/
*.spec
**/build/

# Sublime Text
*.sublime-workspace
Expand All @@ -47,3 +48,22 @@ Icon*
.settings
.DS_Store
.vscode/

# Pixi
/.pixi/

# Temporary development files
/crc.c
/gen.py
/CHANGELOG_DRAFT.md

# Generated runtime in examples
examples/*/bakelite_runtime/

# PlatformIO
.pio/
*.ino.cpp

# Benchmark toolchains and results
bench/toolchains/
bench/results/
16 changes: 0 additions & 16 deletions .isort.cfg

This file was deleted.

11 changes: 0 additions & 11 deletions .mypy.ini

This file was deleted.

14 changes: 0 additions & 14 deletions .pydocstyle.ini

This file was deleted.

Loading
Loading