build #877
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 12 * * *" | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.9.2' | |
- uses: julia-actions/cache@v1 | |
- name: Install JuliaFormatter and format | |
run: | | |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))' | |
- uses: pre-commit/[email protected] | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
with: | |
max-line-length: "100" | |
args: | |
"--exit-zero" | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Mambaforge | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
activate-environment: env | |
use-mamba: true | |
- name: Add conda to system path | |
run: | | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.3.2 | |
virtualenvs-create: false | |
installer-parallel: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y libglu1-mesa | |
pip install git+https://github.com/kinnala/scikit-fem.git | |
poetry install --no-interaction --no-root | |
mamba install slepc4py=*=complex* -y | |
- name: Build package | |
run: | | |
poetry build |