55 pull_request :
66 schedule :
77 # Run every Monday at 8am to check latest versions of dependencies
8- - cron : " 0 8 * * MON "
8+ - cron : " 0 8 * * WED "
99
1010jobs :
1111 lint :
2323
2424 - name : Lint
2525 run : |
26- touch requirements_dev.txt
26+ touch requirements_dev.txt requirements.txt
2727 python -m pip install --upgrade pip
28- python -m pip install -r requirements_dev.txt -e .[dev]
28+ python -m pip install -r requirements.txt -r requirements_dev.txt -e .[dev]
2929 tox -e pre-commit,mypy
3030
3131 test :
5959 run : pytest tests
6060
6161 - name : Upload coverage to Codecov
62- uses : codecov/codecov-action@v2
62+ uses : codecov/codecov-action@v3
6363 with :
6464 name : ${{ matrix.python }}/${{ matrix.os }}
6565 files : cov.xml
8282 with :
8383 path : /tmp/.buildx-cache
8484 key : ${{ runner.os }}-buildx-${{ github.sha }}
85- restore-keys : |
86- ${{ runner.os }}-buildx-
85+ restore-keys : ${{ runner.os }}-buildx-
8786
8887 - name : Log in to GitHub Docker Registry
8988 if : github.event_name != 'pull_request'
@@ -118,10 +117,17 @@ jobs:
118117
119118 - name : Run tests in the container locked with requirements_dev.txt
120119 run : |
121- docker run --name test build bash /project/tests /container_tests.sh
120+ docker run --name test build bash /project/.github/workflows /container_tests.sh
122121 docker cp test:/project/dist .
123122 docker cp test:/project/requirements.txt .
124123 docker cp test:/project/requirements_dev.txt .
124+ docker cp test:/project/cov.xml .
125+
126+ - name : Upload coverage to Codecov
127+ uses : codecov/codecov-action@v3
128+ with :
129+ name : 3.10-locked/ubuntu-latest
130+ files : cov.xml
125131
126132 - name : Build runtime image
127133 uses : docker/build-push-action@v3
@@ -147,9 +153,6 @@ jobs:
147153 runs-on : ubuntu-latest
148154
149155 steps :
150- - name : Checkout
151- uses : actions/checkout@v2
152-
153156 - uses : actions/setup-python@v4
154157 with :
155158 python-version : " 3.10"
0 commit comments