From 23e6cf5921917cf05375a8a3438c16b8b86760b7 Mon Sep 17 00:00:00 2001 From: radeva Date: Mon, 10 Jun 2024 13:32:22 +0300 Subject: [PATCH 1/5] (gha) use flyci runners --- .github/workflows/test.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76651635..d0b22619 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,18 +10,18 @@ jobs: strategy: matrix: python: ['3.8', '3.9', '3.10', '3.11', '3.12'] - platform: [ubuntu-latest, macos-latest, windows-latest] + platform: [flyci-macos-14-large-m2] runs-on: ${{ matrix.platform }} steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python }} - - name: Install test dependencies - run: python -m pip install --upgrade nox - - name: Test - run: python -m nox -s tests-${{ matrix.python }} - - name: Lint - run: python -m nox -s lint + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python }} + - name: Install test dependencies + run: python -m pip install --upgrade nox + - name: Test + run: python -m nox -s tests-${{ matrix.python }} + - name: Lint + run: python -m nox -s lint From 5bd39b0ebf52bcca9e6be7e3c9f5b15491feb64c Mon Sep 17 00:00:00 2001 From: radeva Date: Mon, 10 Jun 2024 13:44:42 +0300 Subject: [PATCH 2/5] test with 3.12 only --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0b22619..af6bfb86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: test: strategy: matrix: - python: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python: ['3.12'] platform: [flyci-macos-14-large-m2] runs-on: ${{ matrix.platform }} steps: From 6721df52b5d316f18b05debdfeb92ecb34fb7122 Mon Sep 17 00:00:00 2001 From: radeva Date: Mon, 10 Jun 2024 14:00:26 +0300 Subject: [PATCH 3/5] change runner label --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af6bfb86..92ddb7d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: python: ['3.12'] - platform: [flyci-macos-14-large-m2] + platform: [flyci-macos-14-m2] runs-on: ${{ matrix.platform }} steps: - name: Checkout From ca35c5d8e384a26857a7eb66f4b80e548cbdd74e Mon Sep 17 00:00:00 2001 From: radeva Date: Mon, 10 Jun 2024 14:03:36 +0300 Subject: [PATCH 4/5] add unused variable to cause a lint failure --- src/sample/simple.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sample/simple.py b/src/sample/simple.py index c929f885..7efd70e9 100644 --- a/src/sample/simple.py +++ b/src/sample/simple.py @@ -1,2 +1,4 @@ +а = 1 + def add_one(number): return number + 1 From 86b58dc2d5eedd6e65e7bf4d035f66eb8e858ca1 Mon Sep 17 00:00:00 2001 From: radeva Date: Wed, 12 Jun 2024 10:35:15 +0300 Subject: [PATCH 5/5] use the runner without a matrix --- .github/workflows/test.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92ddb7d8..c86b3f0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,11 +7,12 @@ on: [push, pull_request] jobs: test: - strategy: - matrix: - python: ['3.12'] - platform: [flyci-macos-14-m2] - runs-on: ${{ matrix.platform }} + # strategy: + # matrix: + # python: ['3.12'] + # platform: [flyci-macos-14-m2] + # runs-on: ${{ matrix.platform }} + runs-on: flyci-macos-14-m2 steps: - name: Checkout uses: actions/checkout@v3