test Actions #563
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 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: build vue component | |
uses: ./.github/actions/build-vue-component | |
- 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/ | |
try-startup: | |
strategy: | |
matrix: | |
python: ["3.8", "3.11"] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
needs: [run-all-test] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: build vue component | |
uses: ./.github/actions/build-vue-component | |
- 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 actions_scripts/try_startup_script.py | |