chore(deps-dev): bump pytest-asyncio from 0.21.1 to 0.23.6 #158
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: Linux Python CI | |
on: | |
push: | |
branches: [ "develop", "master" ] | |
pull_request: | |
branches: [ "develop", "master" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
linux_lint: | |
runs-on: ubuntu-22.04 # https://github.com/actions/runner-images#available-images | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/linux | |
with: | |
python-version: '3.11' | |
- name: Lint with mypy and flake8 | |
env: | |
FINGERPRINT_KEY: ${{ secrets.FINGERPRINT_KEY }} | |
BRIGHTDATA_USERNAME: ${{ secrets.BRIGHTDATA_USERNAME }} | |
BRIGHTDATA_PASSWORD: ${{ secrets.BRIGHTDATA_PASSWORD }} | |
run: | | |
poetry run mypy pybas_automation/ tests/ | |
poetry run flake8 pybas_automation/ tests/ | |
linux_test: | |
needs: [ linux_lint ] | |
runs-on: ubuntu-22.04 # https://github.com/actions/runner-images#available-images | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/linux | |
with: | |
python-version: '3.11' | |
- name: Run tests with pytest | |
env: | |
FINGERPRINT_KEY: ${{ secrets.FINGERPRINT_KEY }} | |
BRIGHTDATA_USERNAME: ${{ secrets.BRIGHTDATA_USERNAME }} | |
BRIGHTDATA_PASSWORD: ${{ secrets.BRIGHTDATA_PASSWORD }} | |
run: | | |
mkdir ./dist && touch ./dist/README.md | |
mkdir -p ./coverage/lcov/functional | |
poetry run pytest -s -vv --cov=pybas_automation --cov-report=lcov:coverage/lcov/functional/coverage.lcov tests/functional | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
# https://github.com/codecov/codecov-action#arguments | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: tests_functional | |
files: coverage/lcov/functional/coverage.lcov | |
fail_ci_if_error: false | |
linux_poetry_build: | |
needs: [ linux_lint, linux_test ] | |
runs-on: ubuntu-22.04 # https://github.com/actions/runner-images#available-images | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Setup Python and Poetry | |
uses: ./.github/actions/linux | |
with: | |
python-version: '3.11' | |
- name: Build python package with poetry | |
run: | | |
poetry check | |
poetry run python scripts/update_readme_links.py | |
poetry build |