fix(ci): use pipenv
cache
#10
Workflow file for this run
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-12 | |
- ubuntu-22.04 | |
- windows-2022 | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Use Node version defined in manifest | |
uses: volta-cli/action@v4 | |
- name: Node.js version | |
run: node -v | |
- name: npm version | |
run: npm -v | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
cache: pipenv | |
- name: Install Node dependencies | |
run: npm ci | |
- name: Run Node tests | |
run: npm t | |
- name: Install pipenv | |
run: python3 -m pip install pipenv | |
- name: Install Pip dependencies | |
run: python3 -m pipenv install | |
- name: Run Python tests | |
run: python3 -m pipenv run pytest ./py/selenium/builder/*.py |