test Actions #864
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
name: test | |
run-name: test Actions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-all-test: | |
runs-on: ubuntu-latest | |
needs: [import-correct] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: "1.6.1" | |
- name: install dependencies | |
run: | | |
set -x | |
poetry config virtualenvs.create false | |
poetry install --all-extras | |
python -m playwright install | |
- run: pytest __tests/ | |
import-correct: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: "1.6.1" | |
- name: install dependencies | |
run: | | |
set -x | |
poetry config virtualenvs.create false | |
poetry install --all-extras | |
- run: poetry build | |
- name: run | |
run: | | |
poetry install | |
python -c "import ex4nicegui;from ex4nicegui.reactive import rxui;from ex4nicegui import bi" | |