-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
39 lines (35 loc) · 1.1 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install --disable-pip-version-check ".[dev]"
- run: python -m ruff format --check .
- run: python -m ruff check .
- run: python -m mypy src/paymos
- run: python -m unittest discover -s tests
- run: python -m build
- name: Test the built wheel in isolation
run: |
python -m venv /tmp/paymos-smoke
/tmp/paymos-smoke/bin/python -m pip install --disable-pip-version-check dist/*.whl
cd /tmp
/tmp/paymos-smoke/bin/python -c "import paymos; assert paymos.VERSION"