-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.06 KB
/
pull-request-checks.yml
File metadata and controls
45 lines (35 loc) · 1.06 KB
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
name: Pull Request Checks
on:
pull_request:
permissions:
contents: read
jobs:
test-and-build:
runs-on: ubuntu-latest
env:
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CODING_AGENT_TELEGRAM: 0.0.dev0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install test and build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest build twine setuptools-scm
python -m pip install -e .
- name: Run tests
run: pytest
- name: Build release distributions
run: python -m build
- name: Validate package metadata
run: python -m twine check dist/*
- name: Smoke test built wheel
run: |
python -m venv .smoke-test-venv
source .smoke-test-venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --no-deps dist/*.whl
python -c "import coding_agent_telegram"