-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial fiduswriter pandoc plugin, fiduswriter/fiduswriter#1276
- Loading branch information
0 parents
commit b595cb6
Showing
18 changed files
with
1,360 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
LANGUAGETOOL_VERSION: 5.4 | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- uses: actions/checkout@v3 | ||
- uses: nanasess/setup-chromedriver@master | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install libjpeg-dev python3-dev python3-pip gettext zlib1g-dev git nodejs build-essential | ||
wget https://github.com/jgm/pandoc/releases/download/3.1.13/pandoc-3.1.13-1-amd64.deb -O pandoc.deb | ||
sudo dpkg -i pandoc.deb | ||
cd fiduswriter | ||
mv ../ci/configuration.py ./ | ||
pip install requests[security] | ||
pip install coverage | ||
pip install coveralls | ||
pip install packaging | ||
pip install webdriver-manager | ||
pip install selenium | ||
pip install wheel | ||
pip install pip --upgrade | ||
pip install flake8 | ||
pip install black | ||
if grep version pyproject.toml | grep -q "dev"; | ||
then pip install https://github.com/fiduswriter/fiduswriter/archive/develop.zip; | ||
else pip install https://github.com/fiduswriter/fiduswriter/archive/main.zip; | ||
fi | ||
coverage run $(which fiduswriter) setup --no-static | ||
$(which fiduswriter) lint | ||
- name: Run test pandoc | ||
uses: nick-invision/retry@v2 | ||
with: | ||
timeout_minutes: 8 | ||
max_attempts: 3 | ||
retry_on: error | ||
command: | | ||
pandoc server & | ||
cd ../fiduswriter | ||
coverage run $(which fiduswriter) test pandoc | ||
- name: Coveralls | ||
run: | | ||
cd fiduswriter | ||
coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
run: curl "https://coveralls.io/webhook?repo_token=${{ secrets.GITHUB_TOKEN }}&repo_name=${{ github.repository }}" -d "payload[build_num]=${{ github.run_id }}&payload[status]=done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
*.pyc | ||
*~ | ||
dist/ | ||
build/ | ||
fiduswriter_pandoc.egg-info/ | ||
build/ | ||
__pycache__/ | ||
venv/ | ||
.envrc | ||
.direnv/ | ||
fiduswriter/.transpile | ||
fiduswriter/media | ||
fiduswriter/static-libs | ||
fiduswriter/static-transpile | ||
fiduswriter/static-collected | ||
fiduswriter/.coveragerc | ||
fiduswriter/configuration.py | ||
fiduswriter/fiduswriter.sql | ||
fiduswriter/fiduswriter.sqlite3 | ||
*.zip | ||
*.sql | ||
*.sqlite3 |
Oops, something went wrong.