Skip to content

Commit

Permalink
Enable GitHub Actions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
delivrance authored Oct 3, 2021
1 parent e96b37a commit a3164a0
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 44 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build wheels

on: [push]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_TEST_REQUIRES: tox
CIBW_TEST_COMMAND: cd {project} && tox
CIBW_TEST_SKIP: "*-win*"
CIBW_BUILD_VERBOSITY: 1

- name: Store wheels
uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/cbc/test_cbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def test_cbc256_{mode}_{name}_{count}(self):


class TestCBC256Input(unittest.TestCase):
TYPE_ERROR_PATTERN = r"'\w+' does not support the buffer interface|a bytes-like object is required, not '\w+'"
TYPE_ERROR_PATTERN = r"'\w+' does not (support|have) the buffer interface|a bytes-like object is required, not '\w+'"

def test_cbc256_encrypt_invalid_args_count(self):
with self.assertRaisesRegex(TypeError, r"function takes exactly \d arguments \(\d given\)"):
Expand Down
2 changes: 1 addition & 1 deletion tests/ctr/test_ctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_ctr256_encrypt_extra3(self):


class TestCTR256Input(unittest.TestCase):
TYPE_ERROR_PATTERN = r"'\w+' does not support the buffer interface|a bytes-like object is required, not '\w+'"
TYPE_ERROR_PATTERN = r"'\w+' does not (support|have) the buffer interface|a bytes-like object is required, not '\w+'"

def test_ctr256_encrypt_invalid_args_count(self):
with self.assertRaisesRegex(TypeError, r"function takes exactly \d arguments \(\d given\)"):
Expand Down
2 changes: 1 addition & 1 deletion tests/ige/test_ige.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class TestIGE256Input(unittest.TestCase):
TYPE_ERROR_PATTERN = r"'\w+' does not support the buffer interface|a bytes-like object is required, not '\w+'"
TYPE_ERROR_PATTERN = r"'\w+' does not (support|have) the buffer interface|a bytes-like object is required, not '\w+'"

def test_ige256_encrypt_invalid_args_count(self):
with self.assertRaisesRegex(TypeError, r"function takes exactly \d arguments \(\d given\)"):
Expand Down

0 comments on commit a3164a0

Please sign in to comment.