Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve GitHub Action #408

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

Merged
merged 1 commit into from
Apr 24, 2023
Merged
Changes from all commits
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
23 changes: 20 additions & 3 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ name: Python

on:
push:
branches: [ master ]
branches: [ "master", "main" ]
paths:
- 'pyproject.toml'
- '**.py'
- '.github/workflows/python-testing.yml'

pull_request:
branches: [ master ]
branches: [ "master", "main" ]
paths:
- 'pyproject.toml'
- '**.py'
- '.github/workflows/python-testing.yml'

permissions:
contents: read

concurrency:
# only cancel in-progress runs of the same workflow
Expand All @@ -17,6 +29,9 @@ concurrency:
jobs:
check:
runs-on: ubuntu-latest
# Timout of 15min
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- name: Output env variables
Expand All @@ -41,7 +56,8 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: 3.8
cache: 'pip'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools setuptools-scm
Expand Down Expand Up @@ -70,6 +86,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down