diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-13 17:17:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-13 17:17:33 -0500 |
| commit | 71aa3327fdf7ea23d5b9a6a891460330f14ff196 (patch) | |
| tree | 979810f4c00b09679435e9fa60b60e34e23ab273 | |
| parent | 7bac1ed1f82199e968bd025d631d00a00f3f46b3 (diff) | |
| parent | 23dce8ba4931084813e90b5837db2c20135082fa (diff) | |
| download | external_python_setuptools-71aa3327fdf7ea23d5b9a6a891460330f14ff196.tar.gz external_python_setuptools-71aa3327fdf7ea23d5b9a6a891460330f14ff196.tar.bz2 external_python_setuptools-71aa3327fdf7ea23d5b9a6a891460330f14ff196.zip | |
Merge pull request #1840 from webknjaz/features/integrate-github-actions-ci-cd--tests
Integrate GitHub Actions CI/CD tests
| -rw-r--r-- | .github/workflows/python-tests.yml | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 00000000..71957aba --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,76 @@ +name: Test suite + +on: + push: + pull_request: + schedule: + - cron: 1 0 * * * # Run daily at 0:01 UTC + +jobs: + tests: + name: 👷 + runs-on: ${{ matrix.os }} + strategy: + # max-parallel: 5 + matrix: + python-version: + - 3.8 + - 3.7 + - 3.6 + - 3.5 + - 2.7 + os: + - ubuntu-18.04 + - ubuntu-16.04 + - macOS-latest + # - windows-2019 + # - windows-2016 + env: + - TOXENV: python + + steps: + - uses: actions/checkout@master + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + version: ${{ matrix.python-version }} + - name: Upgrade pip/setuptools/wheel + run: >- + python + -m pip install + --disable-pip-version-check + --upgrade + pip setuptools wheel + - name: Install tox + run: >- + python -m pip install --upgrade tox tox-venv + - name: Log installed dists + run: >- + python -m pip freeze --all + - name: Log env vars + run: >- + env + env: ${{ matrix.env }} + + - name: Update egg_info based on setup.py in checkout + run: >- + python -m bootstrap + env: ${{ matrix.env }} + - name: Verify that there's no cached Python modules in sources + if: >- + ! startsWith(matrix.os, 'windows-') + run: >- + ! grep pyc setuptools.egg-info/SOURCES.txt + + - name: 'Initialize tox envs: ${{ matrix.env.TOXENV }}' + run: | + python -m tox --parallel auto --notest --skip-missing-interpreters false + env: ${{ matrix.env }} + - name: Test with tox + run: | + ${{ startsWith(matrix.os, 'windows-') && 'setx NETWORK_REQUIRED ' || 'export NETWORK_REQUIRED=' }}1 + python -m tox \ + --parallel 0 \ + -- \ + --cov + env: ${{ matrix.env }} |
