Skip to content

Commit

Permalink
Updated GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinOrlowski committed Oct 23, 2023
1 parent ca72fe7 commit aec6f43
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Setup Python"
uses: actions/setup-python@master
with:
python-version: 3.8
python-version: 3.11

- name: "Generate coverage report"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v2
uses: actions/checkout@v4

# https://github.com/marketplace/actions/paths-changes-filter
- name: "Look for changed files..."
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v2
uses: actions/checkout@v4

# https://github.com/marketplace/actions/paths-changes-filter
- name: "Look for changed doc related files..."
Expand All @@ -43,4 +43,3 @@ jobs:
# LICENSE is externally sourced and we're not going to fix it.
exclude: "LICENSE.md"
config_file: .markdownlint.yml

9 changes: 6 additions & 3 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ ubuntu-latest ]
python: [3.6, 3.7, 3.8, 3.9]
python: [3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12]

steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v2
uses: actions/checkout@v4

# https://github.com/marketplace/actions/paths-changes-filter
- name: "Look for changed files..."
Expand All @@ -44,6 +43,10 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: "Installing dependencies..."
if: steps.filter.outputs.srcs == 'true'
run: pip install -r requirements.txt

- name: "Running unit tests..."
if: steps.filter.outputs.srcs == 'true'
run: python -m unittest discover tests

0 comments on commit aec6f43

Please sign in to comment.