Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 0 additions & 117 deletions .circleci/config.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/ci.yml
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could you update the referenced actions to their latest versions?

Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
Comment thread
T4rk1n marked this conversation as resolved.
workflow_dispatch:

jobs:
python-3-8:
runs-on: ubuntu-latest

env:
PERCY_ENABLE: 0

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Set up Chrome
uses: browser-actions/setup-chrome@v1
Comment thread
T4rk1n marked this conversation as resolved.
with:
install-chromedriver: true

- name: Set up ChromeDriver
uses: browser-actions/setup-chromedriver@v1

- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-3.8-${{ hashFiles('tests/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-3.8-

- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt --quiet

- name: Run tests
run: pytest

python-3-12-install-test:
runs-on: ubuntu-latest

env:
PERCY_ENABLE: 0

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Set up Chrome
uses: browser-actions/setup-chrome@v1
Comment thread
T4rk1n marked this conversation as resolved.
with:
install-chromedriver: true

- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-3.12-${{ hashFiles('tests/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-3.12-

- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt --quiet

- name: Generate project and test
run: |
mkdir test_install
cd test_install
cookiecutter .. --config-file ../tests/test_config.yaml --no-input
cd test_component
python -m venv venv
. venv/bin/activate
pip install -r tests/requirements.txt --quiet
npm install --ignore-scripts
npm run build
pytest
Loading