Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

build(deps): bump actions/checkout from 3 to 4 #381

build(deps): bump actions/checkout from 3 to 4

build(deps): bump actions/checkout from 3 to 4 #381

Workflow file for this run

name: Tests
on:
push:
tags-ignore:
- '**'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '.github/**'
- '!.github/workflows/test.yml'
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '.github/**'
- '!.github/workflows/test.yml'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ '3.10', '3.11' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
sudo apt update && sudo apt install --yes libgl1-mesa-dev
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Test with pytest
run: |
pytest --cov=inka --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: GitHub
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: mypy
run: |
mypy --python-version=3.10 src/
- name: flake8
run: |
flake8 src/ tests/
- name: black
run: |
black --check --verbose ./src ./tests
- name: isort
run: |
isort . --check --diff