File: check.yml

package info (click to toggle)
python-pipdeptree 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 372 kB
  • sloc: python: 1,044; sh: 55; makefile: 30
file content (55 lines) | stat: -rw-r--r-- 1,464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: check
on:
  push:
  pull_request:
  schedule:
  - cron: "0 8 * * *"

jobs:
  test:
    name: Test on ${{ matrix.py }} under ${{ matrix.os }}
    runs-on: ${{ matrix.os }}-latest
    strategy:
      fail-fast: false
      matrix:
        os:
        - Ubuntu
        py:
        - 3.9-dev
        - 3.8
        - 3.7
        - 3.6
        - 3.5
        - 3.4
        - 2.7
        - pypy3
        - pypy2
    steps:
    - name: Setup graphviz
      uses: ts-graphviz/setup-graphviz@v1
    - name: Setup python for tox
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Install tox
      run: python -m pip install tox
    - name: Setup python for test ${{ matrix.py }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.py }}
    - uses: actions/checkout@v2
    - name: Pick tox environment to run
      run: |
        import os
        import platform
        import sys
        major, minor, impl = sys.version_info[0], sys.version_info[1], platform.python_implementation()
        toxenv = ("py" if impl == "CPython" else "pypy") + ("{}{}".format(major, minor) if impl == "CPython" else ("3" if major == 3 else ""))
        env_file = open(os.environ['GITHUB_ENV'], "a")
        env_file.write("TOXENV={}\n".format(toxenv))
        env_file.close()
      shell: python
    - name: Setup test suite
      run: tox -vv --notest
    - name: Run test suite
      run: tox --skip-pkg-install