Skip to content

Commit

Permalink
Merge pull request #5 from scrapy-plugins/feature/github-actions-lint…
Browse files Browse the repository at this point in the history
…-and-tests

Github action workflow for linting and testing
  • Loading branch information
VMRuiz committed Apr 4, 2024
2 parents bf17ac8 + 6763b94 commit 6dc396e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 tests
run: tox -e ${{ matrix.tox || 'py' }}

0 comments on commit 6dc396e

Please sign in to comment.