Skip to content

Commit 9cd450a

Browse files
committed
ci: add GitHub Actions workflow running pytest on Python 3.8/3.11/3.13
1 parent 1bd3910 commit 9cd450a

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ci-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
name: pytest (py ${{ matrix.python-version }})
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
python-version: ['3.8', '3.11', '3.13']
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install -e ".[dev]"
36+
37+
- name: Test (pytest)
38+
run: pytest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# paylink
22

3+
[![CI](https://github.com/GetPayin-Tech/paylink-python/actions/workflows/ci.yml/badge.svg)](https://github.com/GetPayin-Tech/paylink-python/actions/workflows/ci.yml)
34
[![PyPI](https://img.shields.io/pypi/v/paylink.svg)](https://pypi.org/project/paylink/)
45
[![Python](https://img.shields.io/pypi/pyversions/paylink.svg)](https://pypi.org/project/paylink/)
56
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)

0 commit comments

Comments
 (0)