Skip to content

Commit

Permalink
Launch tests on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jul 12, 2024
1 parent 2ca3c77 commit 52a3b6a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 38 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: webencoding's tests
on: [push, pull_request]

jobs:
tests:
name: ${{ matrix.os }} - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.12']
include:
- os: ubuntu-latest
python-version: '3.8'
- os: ubuntu-latest
python-version: 'pypy-3.9'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tests’ requirements
run: python -m pip install .[test]
- name: Launch tests
run: python -m pytest
- name: Check coding style
run: python -m ruff check
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion mklabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generate(url):
''']
labels = [
(repr(assert_lower(label)).lstrip('u'),
repr(encoding['name']).lstrip('u'))
repr(encoding['name'].lower()).lstrip('u'))
for category in json.loads(urlopen(url).read().decode('ascii'))
for encoding in category['encodings']
for label in encoding['labels']]
Expand Down
9 changes: 0 additions & 9 deletions tox.ini

This file was deleted.

0 comments on commit 52a3b6a

Please sign in to comment.