Tweak read #61
Workflow file for this run
This file contains hidden or 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: CI-tests | |
| on: | |
| # Trigger the workflow on push to master or pull request | |
| # to be merged in master | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ['1', 'lts'] | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout SegyIO | |
| uses: actions/checkout@v2 | |
| - name: Setup julia | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| arch: x64 | |
| - name: Run tests | |
| uses: julia-actions/julia-runtest@latest | |
| with: | |
| annotate: true | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v4 | |
| with: | |
| file: lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| python-tests: | |
| name: Python tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.10' | |
| - name: Install package | |
| run: python -m pip install -e . | |
| - name: Install dependencies | |
| run: python -m pip install pytest pytest-cov codecov | |
| - name: Run tests with coverage | |
| run: pytest -vs --cov=pysegy --cov-report=xml | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: true | |
| files: coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} |