From bf91d442a687618acc77d7e9dd25750bc5de73d8 Mon Sep 17 00:00:00 2001 From: Clifton Barnes Date: Mon, 8 Aug 2022 11:35:03 -0400 Subject: [PATCH 1/2] Create github action for testing --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d464156 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: [push, pull_request] +jobs: + test: + strategy: + matrix: + version: [2.7, 3.8] + name: Test + runs-on: ubuntu-latest + steps: + - name: Install host dependencies + run: sudo apt update && sudo apt install -y libarchive-dev python${{ matrix.version }}-dev + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.version }} + + - name: Check out code + uses: actions/checkout@v3 + + - name: Build the library + env: + PYVER: ${{ matrix.version }} + run: make build + + - name: Run tests + run: make test From b67420477a1fa06ed3d61514674713bd55d87607 Mon Sep 17 00:00:00 2001 From: Clifton Barnes Date: Mon, 8 Aug 2022 12:18:06 -0400 Subject: [PATCH 2/2] Remove Travis CI configuration --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 62200c1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python -jobs: - include: - - python: "2.7" - env: PYVER=2.7 - - python: "3.6" - env: PYVER=3.6 -before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq libarchive-dev - - pyenv shell $(python -c 'import platform; print(platform.python_version())') -install: - - make build -script: - - make test -notifications: - slack: smartfile:tbDIPzVJIPBpSz29kQw6b8RQ