diff --git a/.github/workflows/generate-requirements.yml b/.github/workflows/generate-requirements.yml deleted file mode 100644 index f971a3d8..00000000 --- a/.github/workflows/generate-requirements.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Generate requirements.txt for readthedocs - -on: - push: - branches: [main] - -jobs: - generate-requirements: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - name: Set up Python 3.8 - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install Poetry - run: curl -sSL https://install.python-poetry.org | python3 - - - name: Export requirements.txt - run: poetry export --without-hashes --format=requirements.txt -o docs/requirements.txt -E docs -E notebook diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index c02f7fa2..00000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will install Python dependencies, lint and run tests with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: linting - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - name: Set up Python 3.8 - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install dependencies - run: | - git lfs pull - python -m pip install --upgrade pip - pip install pycodestyle pylint mypy pytest types-PyYAML types-requests coverage coveralls - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Install package - run: | - python -m pip install . - - name: pycodestyle - run: | - python -m pycodestyle --ignore=E203,E501,W503 sed tests - - name: pylint - if: ${{ always() }} - run: | - python -m pylint --good-names=i,j,k,ex,x,y,t,k,v,ax,df,ec,mc,dc,ct --disable=fixme,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-lines,too-many-public-methods,too-many-instance-attributes,too-few-public-methods sed tests - - name: mypy - if: ${{ always() }} - run: | - python -m mypy --ignore-missing-imports --follow-imports=silent --no-strict-optional sed tests - - name: Test with pytest - if: ${{ always() }} - run: | - coverage run -m pytest -sv --show-capture=no tests - - name: Submit to coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - coveralls --service=github diff --git a/.github/workflows/pytest_coveralls.yml b/.github/workflows/pytest_coveralls.yml deleted file mode 100644 index 4909c2a3..00000000 --- a/.github/workflows/pytest_coveralls.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This workflow will install Python dependencies, run tests for a single versions of Python and commit test results to coveralls -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: pytest - -on: pull_request - -jobs: - pytest: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - name: Set up Python 3.8 - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install dependencies - run: | - git lfs pull - python -m pip install --upgrade pip - python -m pip install pytest coverage coveralls - - name: Install package - run: | - python -m pip install . - - name: Test with pytest - run: | - coverage run -m pytest -sv --show-capture=no tests - - name: Submit to coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - coveralls --service=github diff --git a/.github/workflows/pytest_muliversion.yml b/.github/workflows/pytest_muliversion.yml deleted file mode 100644 index 955304ea..00000000 --- a/.github/workflows/pytest_muliversion.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will install Python dependencies, and run tests for multiple versions of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: pytest - -on: - push: - branches: [main] - -jobs: - pytest: - runs-on: ubuntu-latest - strategy: - matrix: - python_version: ["3.8", "3.9", "3.10"] - - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python_version }} - - name: Install dependencies - run: | - git lfs pull - python -m pip install --upgrade pip - python -m pip install pytest coverage coveralls - - name: Install package - run: | - python -m pip install . - - name: Test with pytest - run: | - coverage run -m pytest -sv --show-capture=no tests - - name: Submit to coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - coveralls --service=github