A CI workflow to test our python packages #4
Workflow file for this run
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: Test | |
# Test the python packages that are part of the toolchain | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10, 3.11, 3.12] | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Set up Python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Update pip | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
# install the packages | |
- name: Install packages | |
run: | | |
pip install jani_generator/.[dev] | |
pip install mc_toolchain_jani_common/.[dev] | |
pip install scxml_converter/.[dev] | |
# lint packages | |
# TODO: add linting | |
# run the tests | |
- name: Run tests | |
run: pytest |