-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (40 loc) · 1.23 KB
/
python-app.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
44
45
46
47
48
49
50
51
52
53
54
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests and type-checks
on: push
jobs:
Testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.6"
# cache: 'poetry'
- name: Install dependencies
run: |
poetry env use "3.10.6"
poetry install --no-interaction
- name: Test with Pytest
run: |
poetry run pytest
Type-Checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10.6"
# cache: 'poetry'
- name: Install dependencies
run: |
poetry env use "3.10.6"
poetry install --no-interaction
- name: Type-check with Pyright
run: poetry run pyright