Skip to content

Commit b4efb77

Browse files
Migrate from TravisCI to Github Actions (#22)
1 parent fdf6970 commit b4efb77

File tree

3 files changed

+50
-58
lines changed

3 files changed

+50
-58
lines changed

.github/workflows/testing.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore:
7+
- '.gitignore'
8+
- '*.md'
9+
- '*.rst'
10+
- 'LICENSE'
11+
- 'dev_requirements.txt'
12+
pull_request:
13+
branches: [ master ]
14+
paths-ignore:
15+
- '.gitignore'
16+
- '*.md'
17+
- '*.rst'
18+
- 'LICENSE'
19+
- 'dev_requirements.txt'
20+
jobs:
21+
test:
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
os: [ubuntu-latest, macos-latest, windows-latest]
26+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
27+
include:
28+
- os: ubuntu-latest
29+
python-version: pypy2
30+
- os: ubuntu-latest
31+
python-version: pypy3
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Python Env
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Display Python version
39+
run: python -c "import sys; print(sys.version)"
40+
- name: Install dependencies
41+
run: |
42+
pip install pytest==3.2.1 pytest-cov==2.5.1
43+
- name: Run Tests
44+
env:
45+
PYTHONHASHSEED: "0"
46+
run: |
47+
pytest --cov=vpk tests

.travis.yml

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

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VPK is Valve's file format for storing game assets.
55
Pythonic access to VPK files and their contents together with a cli tool.
66

7-
Works on: `python2.7``, ``python3.4+``, ``pypy``, and ``pypy3``
7+
Works on: ``python2.7``, ``python3.4+``, ``pypy``, and ``pypy3``
88

99

1010
Install
@@ -124,8 +124,8 @@ Check out https://github.com/SteamDatabase/ValveResourceFormat/
124124
:target: https://pypi.python.org/pypi/vpk
125125
:alt: MIT License
126126

127-
.. |master_build| image:: https://img.shields.io/travis/ValvePython/vpk/master.svg?style=flat&label=master%20build
128-
:target: http://travis-ci.org/ValvePython/vpk
127+
.. |master_build| image:: https://github.com/ValvePython/vpk/workflows/Tests/badge.svg?branch=master
128+
:target: https://github.com/ValvePython/vpk/actions?query=workflow%3A%22Tests%22+branch%3Amaster
129129
:alt: Build status of master branch
130130

131131
.. |sonar_maintainability| image:: https://sonarcloud.io/api/project_badges/measure?project=ValvePython_vpk&metric=sqale_rating

0 commit comments

Comments
 (0)