Skip to content

Commit

Permalink
ci: add python 3.12 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Feb 1, 2024
1 parent 8f16716 commit 4ae4a02
Showing 1 changed file with 41 additions and 47 deletions.
88 changes: 41 additions & 47 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,58 @@
on:
workflow_dispatch:
push:
branches: [main]
workflow_dispatch:
push:
branches: [main]

name: Tests

jobs:
Python-tests:
runs-on: ubuntu-latest
Python-tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
steps:
- name: Check out pyobsplot repository
uses: actions/checkout@v3

- name: Check out pyobsplot repository
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"

- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"

- name: Install node dependencies
run: |
npm ci
npm ci --workspaces
- name: Install hatch
run: pipx install hatch
- name: Install node dependencies
run: |
npm ci
npm ci --workspaces
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install hatch
run: pipx install hatch

- name: Install Python dependencies
run: hatch run echo
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Run pytest
run: hatch run test
- name: Run pytest
run: hatch run test

JS-tests:
runs-on: ubuntu-latest
JS-tests:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"

- name: Install node dependencies
run: npm ci --workspaces

- name: Run tests
run: npm run test --workspaces
- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"

- name: Install node dependencies
run: npm ci --workspaces

- name: Run tests
run: npm run test --workspaces

0 comments on commit 4ae4a02

Please sign in to comment.