v0.4.1 #74
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
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: mtdata build test | |
on: | |
push: | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
permissions: | |
contents: read | |
env: | |
PYTHONUTF8: "1" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] # windows-latest | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools==61.2 flake8 pytest-cov | |
- name: Install module | |
run: | | |
python3 setup.py install | |
- name: Test with pytest | |
run: | | |
python3 -m pytest | |
- name: Test CLI from other dir | |
run: | | |
cd iso-langs | |
python3 -m mtdata -ri list -id -l eng-kan |