-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (28 loc) · 777 Bytes
/
Copy pathpython.yml
File metadata and controls
28 lines (28 loc) · 777 Bytes
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
---
name: python
"on": [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version-file: "pyproject.toml"
cache: "pip"
- name: Install development packages as defined in pyproject.toml
run: |
pip install .[dev]
- name: Run tests
run: |
pytest
- name: Type check the code (mypy)
run: |
mypy main.py
- name: Validate pyproject.toml
run: |
validate-pyproject pyproject.toml