Skip to content

Commit 13e6247

Browse files
committed
act works now
1 parent b3f8813 commit 13e6247

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
run: |
2020
sudo apt-get update
2121
sudo apt-get --yes install texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra cm-super dvipng nodejs
22-
22+
2323
- name: Cache conda
2424
uses: actions/cache@v2
25-
# if: ${{ !env.ACT }}
2625
env:
2726
# Increase this value to reset cache if etc/example-environment.yml has not changed
2827
CACHE_NUMBER: 2
@@ -31,14 +30,15 @@ jobs:
3130
key:
3231
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements.txt') }}
3332

34-
- name: Install miniconda
33+
- name: act workarounds
3534
if: ${{ env.ACT }}
3635
run: |
3736
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
3837
wget $MINICONDA_URL
3938
MINICONDA_SH="Miniconda3-latest-Linux-x86_64.sh"
4039
sudo bash $MINICONDA_SH -b -p $CONDA
4140
rm $MINICONDA_SH # Clean up after installing
41+
mkdir data
4242
4343
- uses: conda-incubator/setup-miniconda@v2
4444
with:
@@ -52,12 +52,12 @@ jobs:
5252
- name: Install dependencies
5353
run: |
5454
conda install --yes -c conda-forge --file requirements.txt
55-
55+
5656
- name: Lint with flake8
5757
run: |
5858
conda install --yes -c conda-forge flake8 flake8-comprehensions flake8-bugbear
5959
flake8 pySDC
60-
60+
6161
- name: Run pytest
6262
run: |
6363
conda install --yes -c conda-forge pytest-cov
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Deploy 🚀
7373
uses: JamesIves/[email protected]
74-
if: ${{ github.event_name == 'push' }}
74+
if: ${{ github.event_name == 'push' }} && ${{ !env.ACT }}
7575
with:
7676
branch: gh-pages # The branch the action should deploy to.
7777
folder: docs/build/html # The folder the action should deploy.

CHANGELOG.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Changelog
22
---------
33

4-
- October 21, 2021: Version 4.2 brings compatibility with Python 3.9, including some code cleanup. The CI test suite seems to run
5-
faster now, since sorting out the dependencies is faster.
4+
- October 21, 2021 (WIP): Version 4.2 brings compatibility with Python 3.9, including some code cleanup. The CI test
5+
suite seems to run faster now, since sorting out the dependencies is faster. Tested `mamba <https://github.com/mamba-org/mamba>`_,
6+
but this is not stable enough, yet. Also, the CI workflow can now run locally using `act <https://github.com/nektos/act>`_.
67

78
- August 11, 2021: Version 4.1 has some more changes under the hood, most of them with no significant impact to users.
89
The CI pipeline has been completely rewritten, porting the code to `Github Actions <https://github.com/features/actions>`_

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Features
1616
- Many different examples, collocation types, data types already implemented
1717
- Works with `PETSc <http://www.mcs.anl.gov/petsc/>`_ through `petsc4py <https://bitbucket.org/petsc/petsc4py>`_ , `FEniCS <https://fenicsproject.org/>`_ and `mpi4py-fft <https://mpi4py-fft.readthedocs.io/en/latest/>`_
1818
- Continuous integration via `Github Actions <https://github.com/Parallel-in-Time/pySDC/actions>`__
19-
- Fully compatible with 3.6 (or higher)
19+
- Fully compatible with Python 3.6 - 3.9
2020

2121

2222
Getting started
@@ -60,7 +60,15 @@ You can achieve this e.g. by
6060
6161
conda install -c conda-forge mpich petsc4py mpi4py fenics
6262
63-
Most of the code is tested automatically using `Github Actions <https://github.com/Parallel-in-Time/pySDC/actions>`__, so a working version of the installation process can always be found in the `ci_pipeline.yml <https://github.com/Parallel-in-Time/pySDC/blob/master/.github/workflows/ci_pipeline.yml>`_ file.
63+
Most of the code is tested automatically using `Github Actions <https://github.com/Parallel-in-Time/pySDC/actions>`__, so
64+
a working version of the installation process can always be found in the `ci_pipeline.yml <https://github.com/Parallel-in-Time/pySDC/blob/master/.github/workflows/ci_pipeline.yml>`_ file.
65+
This workflow can be run locally using `act <https://github.com/nektos/act>`_ by
66+
67+
.. code-block:: bash
68+
69+
act --env CONDA=/usr/share/miniconda -j ci
70+
71+
See also `here <https://github.com/lmmx/devnotes/wiki/Running-GitHub-CI-locally-with-nektos-act-(Docker)-in-LXC>`_ for details on how to run workflos depending on miniconda locally.
6472

6573
For many examples, `LaTeX` is used for the plots, i.e. a decent installation of this is needed in order to run the tests.
6674
When using `fenics` or `petsc4py`, a C++ compiler is required (although installation may go through at first).

0 commit comments

Comments
 (0)