Skip to content

CI: Run tests in Cygwin for Cygwin CI #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CI: Run tests in Cygwin for Cygwin CI
  • Loading branch information
DWesl authored Jun 10, 2022
commit 2cac954e1ea21102812e47fd823dd1c269505de3
23 changes: 12 additions & 11 deletions .github/workflows/tests-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,35 @@ jobs:
strategy:
fail-fast: false
matrix:
python:
- '3.10'
python-minor:
- '9'

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up target Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Setup Cygwin
uses: cygwin/cygwin-install-action@v2
with:
packages: >-
python3${{ matrix.python-minor }}
python3${{ matrix.python-minor }}-pip

- name: Install nox
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
python -m pip install nox
/usr/bin/python -m pip install nox
nox --version

- name: Run tests
run: nox -s test-${{ matrix.python }}
shell: bash.exe -eo pipefail -o igncr "{0}"
run: nox -s test-3.${{ matrix.python-minor }}

- name: Send coverage report
uses: codecov/codecov-action@v1
env:
PYTHON: cygwin-${{ matrix.python }}
PYTHON: cygwin-3.${{ matrix.python-minor }}
with:
flags: tests
env_vars: PYTHON
name: cygwin-${{ matrix.python }}
name: cygwin-3.${{ matrix.python-minor }}