Skip to content

Commit

Permalink
bump GH CI actions/checkout to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Mar 2, 2022
1 parent 4128201 commit b7542b6
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 55 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@ jobs:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --quiet
- name: mypy
run: |
mypy --version
rm -rf .mypy_cache
mypy pymatgen
- name: pydocstyle
run: |
pydocstyle --count pymatgen
- name: pylint
run: |
pylint pymatgen
- name: black
run: |
black --version
black --check --diff --color pymatgen
- name: flake8
run: |
flake8 --version
flake8 --count --show-source --statistics pymatgen
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics pymatgen
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --quiet
- name: mypy
run: |
mypy --version
rm -rf .mypy_cache
mypy pymatgen
- name: pydocstyle
run: |
pydocstyle --count pymatgen
- name: pylint
run: |
pylint pymatgen
- name: black
run: |
black --version
black --check --diff --color pymatgen
- name: flake8
run: |
flake8 --version
flake8 --count --show-source --statistics pymatgen
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics pymatgen
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
release:
types: [ created ]
types: [created]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
GULP_LIB: ${{ github.workspace }}/cmd_line/gulp/Libraries

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
Expand All @@ -54,12 +54,12 @@ jobs:
strategy:
max-parallel: 2
matrix:
os: [ macos-latest, windows-latest ]
python-version: [ '3.8', '3.9', '3.10' ]
os: [macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10']
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
# The ext package is also only tested in this workflow. Coverage is also computed based on this platform.
name: Testing Linux

on: [ push, pull_request ]
on: [push, pull_request]

jobs:

test:
# prevent this action from running on forks
if: github.repository == 'materialsproject/pymatgen'
Expand All @@ -33,14 +32,10 @@ jobs:
GULP_LIB: ${{ github.workspace }}/cmd_line/gulp/Libraries

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
cache: pip
cache-dependency-path: |
requirements*.txt
setup.py
- name: Install OpenBabel and Libs
shell: bash -l {0}
run: |
Expand Down Expand Up @@ -71,7 +66,7 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Testing Mac

on: [ pull_request ]
on: [pull_request]

jobs:
test:
Expand All @@ -10,8 +10,8 @@ jobs:
strategy:
max-parallel: 20
matrix:
os: [ macos-latest ]
python-version: [ '3.10' ]
os: [macos-latest]
python-version: ['3.10']
# This distribution of tests is designed to ensure an approximately even time to finish for parallel jobs.
pkg:
- pymatgen/analysis/defects pymatgen/analysis/chemenv pymatgen/analysis/elasticity pymatgen/analysis/magnetism
Expand All @@ -28,7 +28,7 @@ jobs:
GULP_LIB: ${{ github.workspace }}/cmd_line/gulp/Libraries

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Testing Windows

on: [ pull_request ]
on: [pull_request]

jobs:
test:
Expand All @@ -10,8 +10,8 @@ jobs:
strategy:
max-parallel: 20
matrix:
os: [ windows-latest ]
python-version: [ '3.9' ]
os: [windows-latest]
python-version: ['3.9']
# This distribution of tests is designed to ensure an approximately even time to finish for parallel jobs.
pkg:
- pymatgen/analysis/defects pymatgen/analysis/chemenv pymatgen/analysis/elasticity pymatgen/analysis/magnetism
Expand All @@ -28,7 +28,7 @@ jobs:
GULP_LIB: ${{ github.workspace }}/cmd_line/gulp/Libraries

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit b7542b6

Please sign in to comment.