Skip to content

Commit

Permalink
ci: use setup-fortran, use major version tags for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Oct 13, 2023
1 parent 5fa9257 commit 8a94302
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 30 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,17 @@ jobs:
uses: actions/checkout@v3

- name: Setup Intel Fortran Classic
uses: awvwgk/setup-fortran@main
uses: awvwgk/setup-fortran@v1
with:
compiler: intel-classic
version: 2021.7.0

- name: Set SETVARS_COMPLETED (temporary)
run: echo "SETVARS_COMPLETED=1" >> $GITHUB_ENV

- name: Set CXX (temporary)
if: runner.os == 'Windows'
run: |
echo "CXX=icl" >> $GITHUB_ENV
version: "2021.7"

- name: Setup Graphviz
if: runner.os == 'Linux'
uses: ts-graphviz/setup-graphviz@v1

- name: Set up Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down Expand Up @@ -83,6 +75,6 @@ jobs:
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v3
with:
file: ./autotest/coverage.xml
29 changes: 16 additions & 13 deletions .github/workflows/pymake-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: ts-graphviz/setup-graphviz@v1

- name: Setup Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand All @@ -41,7 +41,7 @@ jobs:
pip install ".[test]"
- name: Setup GNU Fortran
uses: awvwgk/setup-fortran@main
uses: awvwgk/setup-fortran@v1
with:
compiler: gcc
version: 11
Expand All @@ -66,7 +66,7 @@ jobs:
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v3
with:
file: ./autotest/coverage.xml

Expand All @@ -89,7 +89,7 @@ jobs:
uses: ts-graphviz/setup-graphviz@v1

- name: Set up Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand All @@ -98,11 +98,11 @@ jobs:
python -m pip install --upgrade pip
pip install ".[test]"
- name: Setup symbolic link to gfortran on Linux
run: |
sudo ln -fs /usr/bin/gfortran-${{ matrix.gcc-version }} /usr/local/bin/gfortran
sudo ln -fs /usr/bin/gcc-${{ matrix.gcc-version }} /usr/local/bin/gcc
sudo ln -fs /usr/bin/g++-${{ matrix.gcc-version }} /usr/local/bin/g++
- name: Setup GNU Fortran
uses: awvwgk/setup-fortran@v1
with:
compiler: gcc
version: ${{ matrix.gcc-version }}

- name: Print GNU compiler versions
run: |
Expand All @@ -125,7 +125,7 @@ jobs:
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v3
with:
file: ./autotest/coverage.xml

Expand All @@ -145,7 +145,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -154,8 +154,11 @@ jobs:
python -m pip install --upgrade pip
pip install ".[test]"
- name: Install GNU Fortran
uses: modflowpy/install-gfortran-action@v1
- name: Setup GNU Fortran
uses: awvwgk/setup-fortran@v1
with:
compiler: gcc
version: 11

- name: Download examples for pytest runs
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pymake-linting-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pymake-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand All @@ -49,6 +49,6 @@ jobs:
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v3
with:
file: ./autotest/coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/pymake-rtd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Trigger RTDs build
if: github.ref == 'refs/heads/master'
uses: dfm/rtds-action@v1.0.3
uses: dfm/rtds-action@v1
with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }}
Expand Down

0 comments on commit 8a94302

Please sign in to comment.