Skip to content

add books exporter for jats (bits) format, fiduswriter/fiduswriter#1275 #195

add books exporter for jats (bits) format, fiduswriter/fiduswriter#1275

add books exporter for jats (bits) format, fiduswriter/fiduswriter#1275 #195

Workflow file for this run

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:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install Python dependencies
run: |
pip install wheel
pip install pip --upgrade
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
cd fiduswriter
mv ../ci/configuration.py ./
mv ../ci/.coveragerc ./
pip install requests[security]
pip install coverage
pip install coveralls
pip install packaging
pip install webdriver-manager
pip install selenium
pip install flake8
pip install black
coverage run $(which fiduswriter) setup --no-static
- name: Run linters
run: |
cd fiduswriter
fiduswriter lint
- name: Run tests
uses: nick-invision/retry@v3
with:
timeout_minutes: 8
max_attempts: 3
retry_on: error
command: |
cd fiduswriter
coverage run $(which fiduswriter) test book
- name: Upload failed test screenshots
if: ${{ failure() }}
uses: actions/[email protected]
with:
name: failure-artifacts
path: ${{ github.workspace }}/fiduswriter/screenshots/
- name: Coveralls
run: |
cd fiduswriter
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}