-
Notifications
You must be signed in to change notification settings - Fork 551
51 lines (44 loc) · 1.08 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: test
on:
push:
branches:
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install apt packages
# pycurl build requirements
run: |
sudo apt-get update && sudo apt-get -y install \
libcurl4-gnutls-dev \
libgnutls28-dev
- name: install
run: |
python3 -m pip install -r requirements.in -r requirements-dev.txt
- name: install mypy
run: |
python3 -m pip install mypy types-pycurl types-requests types-Markdown pyflakes
- name: run mypy
run: |
mypy nbviewer
- name: run pyflakes
run: |
pyflakes nbviewer
- name: pip freeze
run: |
python3 -m pip freeze
- name: run tests
run: |
pytest -v nbviewer/tests -s