Skip to content

update github workflow files #51

update github workflow files

update github workflow files #51

name: Run tests and, if successful, deploy to PyPI
on:
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_dev.txt
- name: Run flake8
run: flake8 src
- name: Run mypy
run: mypy src
- name: Run tests
run: python -m pytest --doctest-modules src/osmg/