From ab6038dab39c139b45d49686bb4b8961487e23ee Mon Sep 17 00:00:00 2001 From: betaBison Date: Sun, 4 Aug 2024 18:42:34 -0700 Subject: [PATCH] remove duplicate workflow --- .github/workflows/build_new_version.yml | 98 ------------------------- 1 file changed, 98 deletions(-) delete mode 100644 .github/workflows/build_new_version.yml diff --git a/.github/workflows/build_new_version.yml b/.github/workflows/build_new_version.yml deleted file mode 100644 index b4d4feac..00000000 --- a/.github/workflows/build_new_version.yml +++ /dev/null @@ -1,98 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint 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: build-python-12 - -on: - push: - branches: - - daniel/git_actions_py_version - pull_request: - branches: - - daniel/git_actions_py_version - workflow_dispatch: - -jobs: - build: - name: Python ${{ matrix.python-version }}, OS ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - python-version: ["3.9", "3.11", "3.12"] - os: [ubuntu-latest, macos-latest, windows-latest] - fail-fast : false - defaults: - run: - shell: bash - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - id: setup-python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true # default option selected currently - # Load cached environment, if it exists - - name: Load cached poetry environment - id: cached-poetry-dependencies - uses: actions/cache@v4 - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies and root package - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: | - poetry install --no-interaction --no-root - poetry install --no-interaction - # Install pandoc for building docs - - name: Install pandoc for Ubuntu - if: matrix.os == 'ubuntu-latest' - run: sudo apt install pandoc - - name: Install pandoc for Windows - if: matrix.os == 'windows-latest' - run: choco install pandoc --no-progress - - name: Install pandoc for MacOS - if: matrix.os == 'macos-latest' - run: brew install pandoc - - - name: Test with pytest - run: | - source $VENV - poetry run pytest --cov=gnss_lib_py/algorithms --cov=gnss_lib_py/navdata --cov=gnss_lib_py/parsers --cov=gnss_lib_py/utils --cov=gnss_lib_py/visualizations --cov-report=xml - - name: Upload coverage report to code-cov - uses: codecov/codecov-action@v4 - with: - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - - name: Test if docs are building - run: | - ./build_docs.sh - readme: - runs-on: ubuntu-latest - name: Check if index.rst and README.md weren't changed together - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Get changed files since last remote commit - id: changed-files - uses: tj-actions/changed-files@v44 - - - name: Check if index.rst changed when README.md file changes - if: contains(steps.changed-files.outputs.modified_files, 'README.md') && !contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst') - run: | - echo "README.md has changed but index.rst has not!" - exit 1 - - - name: Check if README.md changed when index.rst file changes - if: contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst') && !contains(steps.changed-files.outputs.modified_files, 'README.md') - run: | - echo "index.rst has changed but README.md has not!" - exit 1