77 pull_request :
88 schedule :
99 # run CI every day even if no PRs/merges occur
10- - cron : ' 0 12 * * *'
10+ - cron : ' 0 12 * * *'
1111
1212jobs :
1313 lint :
14- runs-on : ubuntu-18.04
14+ runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
1717
1818 - name : deps
1919 run : |
3030 pe-parse :
3131 strategy :
3232 matrix :
33- platform : ["ubuntu-18.04 ", "macos-latest"]
33+ platform : ["ubuntu-latest ", "macos-latest"]
3434 build-type : ["Debug", "Release"]
3535 build-shared : ["0", "1"]
3636 compiler :
4141 compiler : { CC: "gcc", CXX: "g++" }
4242 runs-on : ${{ matrix.platform }}
4343 steps :
44- - uses : actions/checkout@v2
44+ - uses : actions/checkout@v3
4545 with :
4646 submodules : ' true'
47- # https://github.com/actions/virtual-environments/issues/3376
48- - name : Workaround GHA Issue with GCC 11
49- if : matrix.compiler.CC == 'clang' && matrix.platform == 'ubuntu-18.04'
50- run : |
51- sudo apt remove libgcc-11-dev gcc-11
5247 - name : Enable ASan+UBSan Sanitizers
5348 if : matrix.build-type == 'Debug'
5449 run : |
@@ -78,27 +73,32 @@ jobs:
7873 pepy :
7974 strategy :
8075 matrix :
81- platform : ["ubuntu-18.04 ", "macos-latest"]
76+ platform : ["ubuntu-latest ", "macos-latest"]
8277 python :
83- - " 3.6"
8478 - " 3.7"
8579 - " 3.8"
80+ - " 3.9"
81+ - " 3.10"
8682 runs-on : ${{ matrix.platform }}
8783 steps :
88- - uses : actions/checkout@v2
89- - uses : actions/setup-python@v2
84+ - uses : actions/checkout@v3
85+ - uses : actions/setup-python@v3
9086 with :
9187 python-version : ${{ matrix.python }}
9288 - name : build
9389 run : |
94- python3 setup.py build
95- - name : sdist and install
96- run : |
97- python3 setup.py sdist
98- python3 -m pip install --user dist/*.tar.gz
99- - name : test
90+ python -m pip install build wheel setuptools
91+ python -m build
92+ - name : test distributions
10093 run : |
101- python3 tests/test_pepy.py tests/assets/example.exe
94+ for dist in dist/*; do
95+ python -m venv test-env
96+
97+ ./test-env/bin/python -m pip install "${dist}"
98+ ./test-env/bin/python tests/test_pepy.py tests/assets/example.exe
99+
100+ rm -rf test-env
101+ done
102102
103103 pe-parse-windows :
104104 strategy :
@@ -108,7 +108,7 @@ jobs:
108108 build-shared : ["0", "1"]
109109 runs-on : windows-2019
110110 steps :
111- - uses : actions/checkout@v2
111+ - uses : actions/checkout@v3
112112 with :
113113 submodules : ' true'
114114 - name : Enable ASan Sanitizers
@@ -147,18 +147,20 @@ jobs:
147147 strategy :
148148 matrix :
149149 python :
150- - " 3.6"
151150 - " 3.7"
152151 - " 3.8"
152+ - " 3.9"
153+ - " 3.10"
153154 runs-on : windows-latest
154155 steps :
155- - uses : actions/checkout@v2
156- - uses : actions/setup-python@v2
156+ - uses : actions/checkout@v3
157+ - uses : actions/setup-python@v3
157158 with :
158159 python-version : ${{ matrix.python }}
159160 - name : build
160161 run : |
161- python setup.py build
162+ python -m pip install --upgrade build wheel setuptools
163+ python -m build
162164 - name : install
163165 run : |
164166 python -m pip install --user .
0 commit comments