pip(deps-dev): bump mypy from 0.931 to 1.5.0 #338
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: Python FAIR Data Pipeline | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
name: Test ${{ matrix.os }} (Python ${{ matrix.python }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest,ubuntu-20.04,macos-latest] | |
python: ["3.8", "3.9", "3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: "x64" | |
- name: Install graphviz | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get install graphviz | |
elif [ "$RUNNER_OS" == "Windows" ]; then | |
choco install graphviz | |
elif [ "$RUNNER_OS" == "Darwin" ]; then | |
brew install graphviz | |
fi | |
shell: bash | |
- name: Install Required | |
run: brew install memcached | |
if: matrix.os == 'macos-latest' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Checkout pySimpleModel | |
uses: actions/checkout@v3 | |
with: | |
repository: FAIRDataPipeline/pySimpleModel | |
path: pySimpleModel | |
- name: Move pySimpleModel | |
run: mv pySimpleModel ../pySimpleModel | |
- name: Run Tests on Windows | |
run: | | |
poetry install | |
pip3 install fair-cli | |
fair registry install | |
pip3 install ../pySimpleModel | |
fair init --ci | |
fair registry start | |
fair pull --local data_pipeline_api/ext/SEIRSconfig.yaml | |
fair run --local data_pipeline_api/ext/SEIRSconfig.yaml | |
poetry run pytest --cov=data_pipeline_api --cov-report=xml --cov-report=term -s tests/ | |
if: matrix.os == 'windows-latest' | |
- name: Run Tests on other OS | |
if: matrix.os != 'windows-latest' | |
run: | | |
poetry install | |
source .venv/bin/activate | |
pip install fair-cli | |
fair registry install | |
pip install ../pySimpleModel | |
fair init --ci | |
fair registry start | |
fair pull --local data_pipeline_api/ext/SEIRSconfig.yaml | |
fair run --local data_pipeline_api/ext/SEIRSconfig.yaml | |
python3 -m poetry run pytest --cov=data_pipeline_api --cov-report=xml --cov-report=term -s tests/ | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
fail_ci_if_error: false | |
verbose: true | |
if: matrix.python == '3.9' && matrix.os == 'ubuntu-20.04' |