-
Notifications
You must be signed in to change notification settings - Fork 28
44 lines (35 loc) · 1.34 KB
/
examples.yml
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
# For an intro guide see: https://docs.github.com/en/actions/quickstart
# For a detailed guide: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#about-yaml-syntax-for-workflows
name: Example Tests
on:
- push # Run this workflow every time we push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: # Define multiple configurations to test on
python-version: [3.7, 3.8, 3.9]
# For each configuration defined above, run the following steps
# sequentially.
steps:
- name: Checkout repository # Name of the step
uses: actions/checkout@v2 # Use someone elses "action" to perform something
# (in this case checkout out our repo)
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements.txt # Runs in the command line during this step
- name: Install
run: pip install .
- name: Test
run: pytest --doctest-modules --cov
- name: Codecov
uses: codecov/codecov-action@v1
with:
name: example-codecov
token: c8fb235d-d1bc-45cf-9575-a32ed97eb8ee # PUT YOUR TOKEN HERE
fail_ci_if_error: true
- name: Typing
run: mypy