update github action and fix cpu error #175
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 and Lint | |
on: pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [3.9, '3.10', 3.11] | |
os: [ | |
ubuntu-latest, | |
windows-latest, | |
macos-latest, | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[test] --verbose | |
- name: Test with pytest | |
run: | | |
pytest mmv_im2im/tests/ | |
- name: Upload codecov | |
uses: codecov/codecov-action@v1 | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9.15 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[test] --verbose | |
- name: Lint with flake8 | |
run: | | |
flake8 mmv_im2im --count --verbose --show-source --statistics | |
#- name: Check with black | |
# run: | | |
# black --check mmv_im2im |