Skip to content

Bump pre-commit/action from 3.0.0 to 3.0.1 in /.github/workflows (#14) #50

Bump pre-commit/action from 3.0.0 to 3.0.1 in /.github/workflows (#14)

Bump pre-commit/action from 3.0.0 to 3.0.1 in /.github/workflows (#14) #50

Workflow file for this run

name: test
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
install-browers:
runs-on: ${{ matrix.test-config.os }}
strategy:
fail-fast: false
matrix:
test-config: [
{
os: "ubuntu-latest",
runner: "selenium",
browser: "chrome",
browser-version: "latest",
driver-version: "latest",
},
{
os: "ubuntu-latest",
runner: "selenium",
browser: "firefox",
browser-version: "latest",
driver-version: "latest",
},
{
os: "ubuntu-latest",
runner: "selenium",
browser: "node",
browser-version: "22",
},
{
os: "macos-latest",
runner: "selenium",
browser: "safari",
},
{
os: "ubuntu-latest",
runner: "playwright",
browser: "chrome",
},
{
os: "ubuntu-latest",
runner: "playwright",
browser: "firefox",
},
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: ./install-browser
with:
runner: ${{ matrix.test-config.runner }}
playwright-version: ${{ matrix.test-config.playwright-version }}
browser: ${{ matrix.test-config.browser }}
browser-version: ${{ matrix.test-config.browser-version }}
driver-version: ${{ matrix.test-config.driver-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check installation
shell: bash
run: |
python install-browser/test_installation.py | tee result.log
grep "${{ matrix.test-config.runner }}/${{ matrix.test-config.browser }}" result.log
download-pyodide:
strategy:
fail-fast: false
matrix:
version: [0.23.2, 0.24.0, 0.25.0, 0.26.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: ./download-pyodide
with:
version: ${{ matrix.version }}
to: pyodide
- name: Check download
shell: bash
run: |
ls pyodide | tee result.log
grep -q "pyodide.js" result.log
grep -q "pyodide.asm.js" result.log
grep -q "pyodide.asm.wasm" result.log
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: pre-commit/action@v3.0.1