Skip to content

main

main #90

Workflow file for this run

---
name: main
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
defaults:
run:
shell: bash
jobs:
test-lib:
# Switch to 22.04 once we drop Python 3.6
runs-on: ubuntu-20.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