Skip to content

Move CI to GitHub actions #2

Move CI to GitHub actions

Move CI to GitHub actions #2

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pipenv install --dev
bash ./scripts/install_nats.sh
- name: Run tests
run: |
pipenv run flake8 --ignore=W391 ./nats/js/
pipenv run pytest -x -vv -s --continue-on-collection-error
env:
PATH: $HOME/nats-server:$PATH