Skip to content

Commit

Permalink
Github action workflow for linting and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
VMRuiz committed Apr 4, 2024
1 parent bf17ac8 commit e98d44e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check test and code linting
on: [push]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pre-commit/[email protected]

build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: "3.8"
tox: min
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox codecov
- name: Run base tests
run: tox -e base
- name: Run all test
run: tox -e ${{ matrix.tox || 'py' }}

0 comments on commit e98d44e

Please sign in to comment.