drop old GCC versions in test #1422
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
name: Test Python | |
jobs: | |
testpython: | |
name: Test Python | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- python: 3.7 | |
tf: 1.14 | |
- python: 3.8 | |
tf: | |
- python: "3.11" | |
tf: | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: 'pip' | |
# https://github.com/pypa/pip/issues/11770 | |
- run: python -m pip install -U "pip>=21.3.1,!=23.0.0" | |
- run: pip install -e .[cpu,test] | |
env: | |
TENSORFLOW_VERSION: ${{ matrix.tf }} | |
DP_BUILD_TESTING: 1 | |
- run: dp --version | |
- run: pytest --cov=deepmd --cov=deepmd_cli source/tests --durations=0 | |
- uses: codecov/codecov-action@v3 | |
with: | |
gcov: true | |
pass: | |
name: Pass testing Python | |
needs: [testpython] | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |