Create SECURITY.md #15
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: Python Package using Conda | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.10] # You can add more versions here | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
environment-file: environment.yml | |
activate-environment: myenv | |
auto-activate-base: false | |
- name: Install Dependencies | |
run: | | |
conda install pip # Make sure pip is installed in the Conda environment | |
pip install -r requirements.txt # If you have additional pip requirements | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 | |
- name: Test with pytest | |
run: | | |
pytest |