Skip to content
Merged
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
19 changes: 12 additions & 7 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
token: ${{ secrets.PAT_TOKEN }}
- id: previoustag
name: Get Latest Tag
run: |-
echo ::set-output name=tag::$(git describe --tags "$(git rev-list --tags --max-count=1)")
echo $(git describe --tags "$(git rev-list --tags --max-count=1)")
run: |
git fetch --tags
last_tag_wprefix=$(git tag --list --sort=-v:refname | head -n 1)
last_tag=$last_tag_wprefix
echo $last_tag_wprefix
echo $last_tag

echo last_tag=$last_tag >> $GITHUB_ENV
- id: changelog
if: github.ref_name == 'main'
name: Generate new Tag
uses: TriPSs/conventional-changelog-action@v6
with:
fallback-version: ${{ steps.previoustag.outputs.tag }}
fallback-version: ${{ env.last_tag }}
git-path: ''
git-url: ${{ github.server_url != 'https://github.com' && 'git.yusufali.ca' || 'github.com' }}
github-token: ${{ github.token }}
github-token: ${{ secrets.PAT_TOKEN }}
output-file: false
skip-ci: false
skip-commit: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v6
with:
node-version: 23.1
node-version: current
- name: Install commitlint
run: |
if [ -f package.json ]; then
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- &id001
name: Setup GitHub CLI
Expand All @@ -37,8 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
submodules: true
- *id001
- env:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
unittest:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.13
- env:
EXTRA_MODULES: ''
name: Install pip dependencies
run: |-
if [ -n "$EXTRA_MODULES" ]; then
pip install $EXTRA_MODULES
fi
if [ ! -f pip-options.txt ]; then
touch pip-options.txt
fi

pip install -r requirements.txt -r pip-options.txt
pip install -r requirements-dev.txt -r pip-options.txt || true
- name: Type Check
run: mypy *.py --check-untyped-defs
- name: Run Tests
run: |2-

coverage run -m unittest tests/*.py
coverage report -m --fail-under=70
name: Unit Test
'on':
pull_request: {}
Loading