Skip to content

Commit

Permalink
run tests on GHA macos too
Browse files Browse the repository at this point in the history
also start fixing the version
  • Loading branch information
habnabit committed Jul 4, 2024
1 parent d47d301 commit 565acc0
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 30 deletions.
73 changes: 54 additions & 19 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "passacre"
version = "1.0.0"
version = "1.0.1-rc1"
edition = "2021"

[lib]
Expand Down
11 changes: 2 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down

0 comments on commit 565acc0

Please sign in to comment.