Skip to content

Commit

Permalink
try to change matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 21, 2024
1 parent cf3cf2c commit 60f3cff
Showing 1 changed file with 20 additions and 39 deletions.
59 changes: 20 additions & 39 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }}
cancel-in-progress: true
jobs:
linux:
py3:
name: "py3-${{ matrix.os }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
include:
- {os: ubuntu-latest, arch: x86_64}
# - {os: macos-12, arch: x86_64}
- {os: windows-2019, arch: x86}

steps:
- uses: actions/checkout@v4
Expand All @@ -24,44 +29,20 @@ jobs:

- name: Install pydeps
run: |
make setup-dev-env PYTHON=python
- name: Tests
run: |
make test PYTHON=python
windows:
runs-on: windows-2019
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install pydeps
run: |
python.exe -m pip install --upgrade --user setuptools pip wheel
python.exe -m pip install --upgrade mock ipaddress pypiwin32 wmi pyopenssl psutil pytest
python.exe -m pip freeze
python.exe setup.py install
make setup-dev-env
- name: Tests
run: |
make test
# Run linters
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: 'Run linters'
run: |
python3 -m pip install --upgrade black ruff rstcheck toml-sort sphinx-rtd-theme
python3 -m pip freeze
make lint-all
# # Run linters
# linters:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# - name: 'Run linters'
# run: |
# python3 -m pip install --upgrade black ruff rstcheck toml-sort sphinx-rtd-theme
# python3 -m pip freeze
# make lint-all

0 comments on commit 60f3cff

Please sign in to comment.