Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a new convert workflow that will supplant the docs build #80

Merged
merged 33 commits into from
Nov 15, 2023

Conversation

tonyfast
Copy link
Contributor

@tonyfast tonyfast commented Nov 9, 2023

begins to address #77

  • the playwright axe auditing has been moved to the pytest testing phase coupled with pytest-xdist for speed ups. audits are saved to when executed. this phase of playwright is for unit testing the library.
  • dial in axe tests to start with a good baseline
  • parameterize different configs. we are moving everything from doit to pytest now.
    open questions:
  • with axe in the client, do i need to run the tests on those outputs? i can just export the results from the testing phase or expand them.

- name: init playwright nbconvert-a11y
run: |
conda activate test-nbconvert-a11y
playwright install --with-deps chrome

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an excellent candidate for caching, if it puts its downloaded files in a sensible, predictable place

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll add this to the to do list. i wanna get to this using the discussion in microsoft/playwright#7249

activate-environment: test-nbconvert-a11y
channel-priority: strict
auto-activate-base: true
environment-file: test-environment.yml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to win CI, you really want to be solving this offline with conda-lock.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will start doing that. thanks! the solve does delay the action significantly

run: |
python -m hatch run docs:build
- name: Deploy main 🚀
uses: JamesIves/github-pages-deploy-action@v4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recall you can do all of this with the built-in GHA options, not... whatever this is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay. cool. been using this for a real long. ill find the more appropirate action

key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('test-environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a greenfield project, you could also consider the smaller-scope https://github.com/mamba-org/setup-micromamba

test-environment.yml Outdated Show resolved Hide resolved
@tonyfast
Copy link
Contributor Author

tonyfast commented Nov 14, 2023

the playwright tests are finally running. 🎉

right now, i am getting a target size error on buttons and some links. https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html

cf: https://adrianroselli.com/2022/05/24x24-pixel-cursor-bookmarklet.html

@tonyfast tonyfast mentioned this pull request Nov 14, 2023
@tonyfast
Copy link
Contributor Author

we currently have reached a baseline for axe tests using wcag 2.1 a, aa and wcag 2.2 aa with out current testing notebooks.

@tonyfast tonyfast merged commit b19a908 into main Nov 15, 2023
3 checks passed
@tonyfast tonyfast mentioned this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants