Skip to content

Commit 6dc396e

Browse files
authored
Merge pull request #5 from scrapy-plugins/feature/github-actions-lint-and-tests
Github action workflow for linting and testing
2 parents bf17ac8 + 6763b94 commit 6dc396e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check test and code linting
2+
on: [push]
3+
4+
jobs:
5+
pre-commit:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: pre-commit/[email protected]
10+
11+
build:
12+
runs-on: ubuntu-20.04
13+
strategy:
14+
matrix:
15+
include:
16+
- python-version: "3.8"
17+
tox: min
18+
- python-version: "3.9"
19+
- python-version: "3.10"
20+
- python-version: "3.11"
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install tox codecov
32+
- name: Run tests
33+
run: tox -e ${{ matrix.tox || 'py' }}

0 commit comments

Comments
 (0)