You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
934 B

  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. strategy:
  6. matrix:
  7. os: ['ubuntu-20.04', 'ubuntu-22.04']
  8. version: ['2.7', '3.8', '3.9', '3.10']
  9. exclude:
  10. - os: 'ubuntu-20.04'
  11. version: '3.10'
  12. - os: 'ubuntu-22.04'
  13. version: '2.7'
  14. - os: 'ubuntu-22.04'
  15. version: '3.8'
  16. - os: 'ubuntu-22.04'
  17. version: '3.9'
  18. name: Test
  19. runs-on: ${{ matrix.os }}
  20. steps:
  21. - name: Install host dependencies
  22. run: sudo apt update && sudo apt install -y libarchive-dev python${{ matrix.version }}-dev
  23. - name: Setup python
  24. uses: actions/setup-python@v4
  25. with:
  26. python-version: ${{ matrix.version }}
  27. - name: Check out code
  28. uses: actions/checkout@v3
  29. - name: Build the library
  30. env:
  31. PYVER: ${{ matrix.version }}
  32. run: make build
  33. - name: Run tests
  34. run: make test