Skip to content

Commit

Permalink
Merge pull request #3456 from GeotrekCE/optimize_ci
Browse files Browse the repository at this point in the history
optimize CI
  • Loading branch information
submarcos authored Jan 31, 2023
2 parents 8652dd0 + 31f229a commit 1955abe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -38,16 +40,16 @@ jobs:
~/.cache/pip
~/.wheel_dir
key: ${{ matrix.os }}-pip-${{ matrix.python-version }}
key: pip-${{ matrix.python-version }}
restore-keys: |
${{ matrix.os }}-pip-${{ matrix.python-version }}
pip-${{ matrix.python-version }}
- name: Install dependencies
run: |
pip3 wheel --wheel-dir=~/.wheel_dir pip wheel setuptools
pip3 install --find-links=~/.wheel_dir --upgrade pip wheel setuptools
pip3 wheel --wheel-dir=~/.wheel_dir -r requirements-dev.txt
pip3 install --find-links=~/.wheel_dir --upgrade -r requirements-dev.txt
pip3 wheel --wheel-dir=~/.wheel_dir pip-tools -c requirements-dev.txt
pip3 install --find-links=~/.wheel_dir --upgrade pip-tools -c requirements-dev.txt
- name: Check dependency graph
run: |
Expand All @@ -73,6 +75,3 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
with:
commit_message: Apply dependencies update by dependabot
commit_user_name: dependabot[bot]
commit_user_email: [email protected]
commit_author: dependabot[bot] <[email protected]>
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
- name: Documentation
run: |
cd docs/
pip install -r ./requirements.txt
pip install -r ./requirements.txt -U
make html SPHINXOPTS="-W"
10 changes: 4 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ jobs:
~/.cache/pip
~/.wheel_dir
key: ${{ matrix.os }}-pip-${{ matrix.python-version }}
key: pip-${{ matrix.python-version }}
restore-keys: |
${{ matrix.os }}-pip-${{ matrix.python-version }}
pip-${{ matrix.python-version }}
- name: Install dependencies
run: |
pip3 wheel --wheel-dir=~/.wheel_dir pip wheel setuptools
pip3 install --find-links=~/.wheel_dir --upgrade pip wheel setuptools
pip3 wheel --wheel-dir=~/.wheel_dir -r requirements-dev.txt
pip3 install --find-links=~/.wheel_dir --upgrade -r requirements-dev.txt
pip3 wheel --wheel-dir=~/.wheel_dir flake8 -c requirements-dev.txt
pip3 install --find-links=~/.wheel_dir --upgrade flake8 -c requirements-dev.txt
- name: Flake8
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
~/.cache/pip
~/.wheel_dir
key: ${{ matrix.os }}-pip-${{ matrix.python-version }}
key: pip-${{ matrix.python-version }}
restore-keys: |
${{ matrix.os }}-pip-${{ matrix.python-version }}
pip-${{ matrix.python-version }}
- name: Install System dependencies
run: |
Expand Down

0 comments on commit 1955abe

Please sign in to comment.