Skip to content

Commit

Permalink
PyCC: Version 1.0
Browse files Browse the repository at this point in the history
- Added detailed project description in README
- Added the example program and examples workflow
- Updated pyproject.toml
  • Loading branch information
SpectraL519 authored Jul 14, 2024
1 parent d74144c commit 497ac72
Show file tree
Hide file tree
Showing 17 changed files with 787 additions and 43 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: examples
on:
push:
branches:
- '*'
paths:
- src/**
- examples/**
- pyproject.toml

jobs:
run_examples:
name: Run the project examples
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

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

- 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 build
- name: Build the library for ${{ matrix.python-version }}
run: |
python -m build
- name: Install library
run: |
python -m pip install dist/pyconstclasses-*-py3-none-any.whl --force-reinstall
- name: Run the example programs
run: |
for program in examples/*.py; do
echo "-> $program"
python "$program"
echo ""
done
1 change: 1 addition & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- src/**
- test/**
- examples/**
- pyproject.toml

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
Loading

0 comments on commit 497ac72

Please sign in to comment.