-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The test on multiple python versions is useless since the nightly test is inside the container which as one specific python version. Also, use the new actions for python setup and dependencies cache.
- Loading branch information
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: pip | ||
cache-dependency-path: | | ||
.pre-commit-config.yaml | ||
**/setup.cfg | ||
**/pyproject.toml | ||
**/requirements*.txt | ||
- uses: pre-commit/[email protected] | ||
|
||
|
@@ -30,8 +36,7 @@ jobs: | |
matrix: | ||
tag: [latest] | ||
browser: [Chrome, Firefox] | ||
python-version: ['3.8', '3.10'] | ||
firefox: ['96.0'] | ||
python-version: ['3.10'] | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -40,19 +45,17 @@ jobs: | |
steps: | ||
|
||
- name: Check out app | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache Python dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('**/setup.json') }} | ||
restore-keys: pip-${{ matrix.python-version }}-tests | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: | | ||
**/setup.cfg | ||
**/pyproject.toml | ||
**/requirements*.txt | ||
- name: Install dependencies for test | ||
run: | | ||
|
@@ -66,7 +69,7 @@ jobs: | |
- name: Install Firefox | ||
uses: browser-actions/setup-firefox@latest | ||
with: | ||
firefox-version: ${{ matrix.firefox }} | ||
firefox-version: '96.0' | ||
if: matrix.browser == 'Firefox' | ||
|
||
- name: Install geckodriver | ||
|