diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index d9ba4a0..de7e951 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -5,31 +5,66 @@ on: - 'pull_request' jobs: - build: + linux: runs-on: 'ubuntu-latest' strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] compiler: - cc: 'clang' ldshared: 'clang -shared' - cc: 'gcc' steps: - - uses: 'actions/checkout@v3' - - name: 'install compiler' - run: | - sudo apt-get install -y ${{ matrix.compiler.cc }} - echo >> "$GITHUB_ENV" 'CC=${{ matrix.compiler.cc }}' - echo >> "$GITHUB_ENV" 'LDSHARED=${{ matrix.compiler.ldshared }}' - - name: 'set up python ${{ matrix.python-version }}' - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: 'install tox' - run: | - python -mpip install -U pip setuptools - python -mpip install -U tox tox-gh-actions - - name: 'run tests' - run: | - tox + - uses: 'actions/checkout@v3' + - name: 'install compiler' + run: | + sudo apt-get install -y ${{ matrix.compiler.cc }} + echo >> "$GITHUB_ENV" 'CC=${{ matrix.compiler.cc }}' + echo >> "$GITHUB_ENV" 'LDSHARED=${{ matrix.compiler.ldshared }}' + - name: 'set up python ${{ matrix.python-version }}' + uses: actions/setup-python@v4 + with: + python-version: | + pypy3.9 + pypy3.10 + 3.7 + 3.8 + 3.9 + 3.10 + 3.11 + 3.12 + - name: 'install tox' + run: | + python -mpip install -U pip setuptools + python -mpip install -U tox tox-gh-actions + - name: 'run tests' + run: | + tox + + macos: + runs-on: ${{ matrix.platform.runner }} + strategy: + matrix: + runner: + - macos-12 + - macos-14 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: | + pypy3.9 + pypy3.10 + 3.8 + 3.9 + 3.10 + 3.11 + 3.12 + - name: 'install tox' + run: | + python -mpip install -U pip setuptools + python -mpip install -U tox tox-gh-actions + - name: 'run tests' + run: | + tox diff --git a/Cargo.lock b/Cargo.lock index a227fed..86aa24a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -171,7 +171,7 @@ dependencies = [ [[package]] name = "passacre" -version = "1.0.0" +version = "1.0.1-rc1" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index f2716de..fc18a64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "passacre" -version = "1.0.0" +version = "1.0.1-rc1" edition = "2021" [lib] diff --git a/tox.ini b/tox.ini index b588943..1da3b1c 100644 --- a/tox.ini +++ b/tox.ini @@ -8,15 +8,8 @@ envlist = py310, py311, py312, - -[gh-actions] -python = - 3.7: py37 - 3.8: py38 - 3.9: py39 - 3.10: py310 - 3.11: py311 - 3.12: py312 + pypy39, + pypy310, [testenv] passenv = VIRTUALENV_DISCOVERY,CI,TRAVIS*