Skip to content

Commit

Permalink
Merge pull request #270 from USEPA/install_testing
Browse files Browse the repository at this point in the history
Tests install for python 3.9, 3.10, 3.11
  • Loading branch information
m-jamieson authored Nov 6, 2024
2 parents 2232c41 + 9f17447 commit 9015245
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: eLCI install testing

on:
push:
branches: [master, install_testing]
pull_request:
branches: [master, development]
types: [opened, reopened] # excludes syncronize to avoid redundant trigger from commits on PRs
workflow_dispatch: # also allow manual trigger, for testing purposes

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]

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

- name: Update pip & install testing pkgs
run: |
python -VV
python -m pip install --upgrade pip
pip install pytest
- name: Install package and dependencies
env:
# Temporary fix to avoid git lfs error in fedelemflowlist install https://github.com/git-lfs/git-lfs/issues/5749
GIT_CLONE_PROTECTION_ACTIVE: false
run: |
pip install .
# - name: Test with pytest
# run: |
# pytest

0 comments on commit 9015245

Please sign in to comment.