Have CI run solve and simulate subcommands #8
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install package and dependencies | |
run: | | |
pip install '.[dev]' | |
- name: Lint with mypy | |
run: | | |
mypy ttdlgc | |
- name: Lint with ruff | |
run: | | |
ruff check ttdlgc | |
- name: Lint with black | |
run: | | |
black --check ttdlgc | |
- name: Run solve and simulate subcommands | |
run: | | |
ttdlgc_model solve --events-filepath data/alignment_impacts.csv --output-solution-filepath choices.csv | |
ttdlgc_model simulate --events-filepath data/alignment_impacts.csv --input-solution-filepath choices.csv |