Skip to content

Commit

Permalink
Use mxmake
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Feb 5, 2024
1 parent a285e5f commit e2fc192
Show file tree
Hide file tree
Showing 12 changed files with 493 additions and 69 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docs

on: [push, workflow_dispatch]

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/setup-node@v3
with:
node-version: 16

- run: npm install -g @mermaid-js/mermaid-cli

- name: Install Project
run: make install

- name: Generate Docs
run: make docs

- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html/
force_orphan: true
15 changes: 7 additions & 8 deletions .github/workflows/test.yaml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Test webresource
name: Tests

on:
push:
pull_request:
on: [push]

jobs:
test:
Expand All @@ -18,17 +16,18 @@ jobs:
- macos-latest

python:
- "2.7"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

Expand All @@ -43,4 +42,4 @@ jobs:
- name: Run coverage
run: |
coverage run --source webresource -m webresource.tests
coverage report -m --fail-under=99
coverage report --fail-under=100
16 changes: 6 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
*.egg-info
*.pyc
/.coverage
/.tox/
/.vscode/
/bin/
/.mxmake
/.ruff_cache
/build
/dist/
/docs/html/
/htmlcov/
/include/
/lib/
/lib64
/local/
/pyvenv.cfg
/share/
/webresource.egg-info/
/requirements-mxdev.txt
/venv
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
License
=======

Copyright (c) 2021-2022, Cone Contributors
Copyright (c) 2021-2024, Cone Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading

0 comments on commit e2fc192

Please sign in to comment.