Skip to content

Commit f33aae8

Browse files
authored
Add pipeline (#131)
1 parent 7a9174c commit f33aae8

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Run tests
24+
run: uv run --with python-dateutil --with six test.py
25+
26+
# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
27+
check:
28+
if: always()
29+
needs: [test]
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Decide whether the needed jobs succeeded or failed
33+
uses: re-actors/alls-green@release/v1
34+
with:
35+
jobs: ${{ toJSON(needs) }}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)