Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
aptiko committed Nov 30, 2024
1 parent 1dd9935 commit 4eb490b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/run-tests-automatically.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Tests

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '10'
node-version: '18'
- name: Set up Chrome
uses: browser-actions/setup-chrome@latest
- name: Set up chromedriver
Expand All @@ -42,7 +42,7 @@ jobs:
sudo -u postgres psql -U postgres -c "create database openmeteo owner runner"
python -m pip install --upgrade pip 'setuptools<58' # See https://stackoverflow.com/questions/69123406
CPLUS_INCLUDE_PATH=/usr/include/gdal C_INCLUDE_PATH=/usr/include/gdal pip install 'gdal==3.4.1'
pip install 'psycopg2>=2.8,<2.9' codecov coverage isort flake8 'black>=22.8,<23'
pip install 'psycopg2>=2.8,<2.9' codecov coverage isort flake8 'black<25'
pip install -r requirements.txt
pip install -r requirements-dev.txt
npm install
Expand All @@ -52,8 +52,13 @@ jobs:
python manage.py makemigrations --check
black --check .
flake8 --max-line-length=88 .
isort --check-only --diff .
isort --check-only --diff --profile=black .
npm run lint
coverage run --include="./*" --omit="*/tests/*","*/tests.py","*/migrations/*","./enhydris_project/*" manage.py test -v2
coverage json
npm run test
codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 4eb490b

Please sign in to comment.