Skip to content

Commit

Permalink
Create python-package-miniconda.yml
Browse files Browse the repository at this point in the history
Trying github actions to check for different OS installations
  • Loading branch information
romankempt authored Nov 21, 2023
1 parent 88a0510 commit e435ee9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-package-miniconda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Use Setup-Miniconda From Marketplace
on: [push]

jobs:
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: environment.yml
python-version: 3.11
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
conda install -c conda-forge compilers git pip cmake scikit-build spglib=2.1.0 pybind11=2.11.1
pip install .
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 comments on commit e435ee9

Please sign in to comment.