Skip to content

Commit 3e6a49c

Browse files
chore: add test-and-lint workflow
1 parent d1fa8c2 commit 3e6a49c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test and Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: '30 11 * * *'
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
app:
17+
- ical-simplejson-proxy
18+
python-version:
19+
- 3.7
20+
- 3.8
21+
- 3.9
22+
- 3.10
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
cd ${{ matrix.app }}
33+
pip install -r requirements.txt
34+
pip install tox tox-gh-actions
35+
- name: Test with Tox
36+
run: |
37+
tox

0 commit comments

Comments
 (0)