mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Implement Tox for testing (#1504)
* Get rid of `make` in favor of `poe` This moves the tasks that were previously in Makefile, into pyproject.toml (with all the other config) This is also more inclusive of Windows developers since they only need Python, and no longer have to install make separately. * update docs * don't make code blocks also links * implement tox for testing * update command to use new task runner
This commit is contained in:
parent
bd590213a1
commit
7dccc469b5
6 changed files with 209 additions and 104 deletions
21
.github/actions/run_tests/action.yaml
vendored
21
.github/actions/run_tests/action.yaml
vendored
|
@ -39,23 +39,12 @@ runs:
|
|||
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Code formatting (Black)
|
||||
- name: Linting
|
||||
if: ${{ env.DEPS_INSTALLED == 'true' }}
|
||||
run: |
|
||||
poetry run black --version
|
||||
poetry run black --check --diff .
|
||||
run: poetry run poe ci-lint
|
||||
shell: bash
|
||||
|
||||
- name: Code Style (flake8)
|
||||
if: >
|
||||
${{ env.DEPS_INSTALLED == 'true' }}
|
||||
run: |
|
||||
poetry run pflake8 --version
|
||||
poetry run pflake8 jrnl tests
|
||||
shell: bash
|
||||
|
||||
- name: Test with pytest
|
||||
if: >
|
||||
${{ env.DEPS_INSTALLED == 'true' }}
|
||||
run: poetry run pytest --junitxml=reports/pytest/results.xml
|
||||
- name: Testing
|
||||
if: ${{ env.DEPS_INSTALLED == 'true' }}
|
||||
run: poetry run poe ci-test
|
||||
shell: bash
|
||||
|
|
2
.github/workflows/docs.yaml
vendored
2
.github/workflows/docs.yaml
vendored
|
@ -66,7 +66,7 @@ jobs:
|
|||
echo "node_modules/.bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Start docs server
|
||||
run: poetry run mkdocs serve &
|
||||
run: poetry run poe docs &
|
||||
|
||||
- name: Generate sitemap
|
||||
env:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue