Skip to content

Commit cf29c3b

Browse files
committed
convert travis to a github action
1 parent d44fa5c commit cf29c3b

2 files changed

Lines changed: 47 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
18+
fail-fast: false
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v6
22+
23+
- name: set up python
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: install
29+
run: pip install -e .
30+
31+
- name: test
32+
run: |
33+
python test_pyformat.py
34+
pyformat pyformat.py
35+
python test_acid.py setup.py
36+
37+
pycodestyle pyformat.py
38+
pip install pyflakes
39+
pyflakes pyformat.py
40+
41+
- name: coverage
42+
run: |
43+
pip install coverage
44+
make coverage
45+
46+
- name: Coveralls
47+
uses: coverallsapp/github-action@v2

.travis.yml

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

0 commit comments

Comments
 (0)