Skip to content

test several python versions in CI #18

test several python versions in CI

test several python versions in CI #18

Workflow file for this run

---
name: main
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
defaults:
run:
shell: bash
jobs:
test-lib:
runs-on: ubuntu-22.04
strategy:
matrix:
python_version:
- "3.6"
- "3.10"
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: test and package python
run: |
set -exuo pipefail
python -m venv venv
. venv/bin/activate
pushd src/lib
python -m pip install -r requirements.txt -r requirements-dev.txt
python -m pytest SmiServices/*.py