main #325
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: 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/library | |
python -m pip install -r requirements.txt -r requirements-dev.txt | |
python -m pytest SmiServices/*.py |