Skip to content

add codecov_token

add codecov_token #2

name: weatherdatascraper
on:
pull_request:
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
env:
PYTHON: '3.11'
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@master
with:
python-version: 3.11
- name: Install required python packages
run: |
python3 -m pip install -r requirements.txt
python3 -m pip install pytest coverage
- name: Run pytest
run: |
coverage run -m pytest
- uses: codecov/codecov-action@v4
with:
name: Upload coverage to Codecov
token: ${{ secrets.CODECOV_TOKEN }}