Skip to content

Commit ff2fd9c

Browse files
authored
Add Github actions (#11)
1 parent 8f81dc7 commit ff2fd9c

File tree

6 files changed

+49
-38
lines changed

6 files changed

+49
-38
lines changed

.coverage

-2
This file was deleted.

.github/workflows/main.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest pytest-cov
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Test with pytest
31+
run: |
32+
pip install -e .
33+
python -m pytest --cov=fs
34+
- name: Upload coverage data to coveralls.io
35+
run: |
36+
pip install coveralls
37+
coveralls --service=github
38+
if: matrix.python-version != '2.7'
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+

.travis.yml

-33
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python FS - a pythonic file system wrapper for humans
22

3-
[![Build Status](https://travis-ci.org/chaosmail/python-fs.svg?branch=master)](https://travis-ci.org/chaosmail/python-fs)
3+
![Build Status](https://github.com/chaosmail/jinja-maven-plugin/workflows/CI/badge.svg)
44
[![Coverage Status](https://coveralls.io/repos/chaosmail/python-fs/badge.svg)](https://coveralls.io/r/chaosmail/python-fs)
55
[![License](http://img.shields.io/:license-mit-blue.svg)](https://raw.githubusercontent.com/chaosmail/python-fs/master/LICENSE)
66

fs/tests/test_mkdir.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ def test_mkdir_recursive_fail():
3939
if (os.path.exists(path)):
4040
raise ValueError("Directory %s already exists!" % path)
4141

42-
with pytest.raises(FileNotFoundError):
43-
fs.mkdir(path, recursive=False)
42+
with pytest.raises(Exception):
43+
fs.mkdir(path, recursive=False)

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
'Programming Language :: Python :: 3',
3535
'Programming Language :: Python :: 3.3',
3636
'Programming Language :: Python :: 3.4',
37+
'Programming Language :: Python :: 3.5',
38+
'Programming Language :: Python :: 3.6',
39+
'Programming Language :: Python :: 3.7',
40+
'Programming Language :: Python :: 3.8',
41+
'Programming Language :: Python :: 3.9',
3742
'Topic :: Software Development :: Libraries',
3843
'Topic :: Software Development :: Libraries :: Python Modules',
3944
'Topic :: System :: Filesystems',

0 commit comments

Comments
 (0)