Skip to content

Commit 67f8e01

Browse files
youtuxskarzi
andauthored
Switch to GitHub actions (#119)
* Switch to GitHub actions (changes from github-actions branch) * Run main GitHub workflow also on pull_request and workflow_dispatch Co-authored-by: Łukasz Skarżyński <skarzynski_lukasz@protonmail.com> Co-authored-by: Łukasz Skarżyński <skarzynski_lukasz@protonmail.com>
1 parent 65c1320 commit 67f8e01

File tree

4 files changed

+55
-20
lines changed

4 files changed

+55
-20
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
12+
[*.py]
13+
indent_style = space
14+
indent_size = 4
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Main testing workflow
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -U setuptools
26+
pip install tox tox-gh-actions
27+
- name: Test with tox
28+
run: |
29+
tox

.travis.yml

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

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ ignore_outcome = true
3030

3131
[pytest]
3232
addopts = -vv -l
33+
34+
[gh-actions]
35+
python =
36+
3.6: py36
37+
3.7: py37
38+
3.8: py38
39+
3.9: py39
40+
3.10: py310

0 commit comments

Comments
 (0)