lets see if browser install is faster with different action #12
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: Windows | |
on: | |
push: | |
paths: | |
- '**.py' | |
- '**.yml' | |
pull_request: | |
# schedule: | |
# - cron: '0 8 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
run-tests: | |
name: Python ${{ matrix.python-version }} | |
runs-on: windows-latest | |
strategy: | |
max-parallel: 9 | |
fail-fast: false | |
matrix: | |
python-version: [ | |
# "3.10", | |
"3.11" | |
] | |
poetry-version: ["1.6.1"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dev dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
# - name: Install browsers on Windows | |
# if: runner.os == 'Windows' | |
# shell: powershell | |
## choco install chromium opera brave googlechrome --no-progress -y --force | |
## choco install chromium googlechrome firefox --no-progress -y --force | |
# run: | | |
# choco install googlechrome --no-progress -y --force | |
- name: install chrome | |
uses: browser-actions/setup-chrome@v1 | |
run: chrome --version | |
# - name: Test with tox | |
# run: tox | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Configure Poetry | |
shell: bash | |
run: poetry config virtualenvs.create false | |
- name: Install dependencies | |
shell: bash | |
run: | | |
poetry install --with dev |