Skip to content

Commit

Permalink
Installe manuellement geckodriver dans la CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemilink authored and Situphen committed Aug 17, 2022
1 parent 5c95f77 commit 4cf8019
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
MARIADB_VERSION: "10.4.10"
COVERALLS_VERSION: "3.3.1" # check if Coverage needs to be also updated in requirements-ci.txt
BLACK_VERSION: "22.6.0" # needs to be also updated in requirements-dev.txt and .pre-commit-config.yaml
GECKODRIVER_VERSION: "0.31.0"

# As GitHub Action does not allow environment variables
# to be used in services definitions, these are only for
Expand Down Expand Up @@ -176,6 +177,15 @@ jobs:
mysql database: "ci_db_name"
mysql root password: "ci_root_password"

- name: Install Firefox
run: sudo apt-get update && sudo apt-get install firefox

- name: Install Geckodriver
run: |
wget https://github.com/mozilla/geckodriver/releases/download/v${{ env.GECKODRIVER_VERSION }}/geckodriver-v${{ env.GECKODRIVER_VERSION }}-linux64.tar.gz
mkdir geckodriver
tar -xzf geckodriver-v${{ env.GECKODRIVER_VERSION }}-linux64.tar.gz -C geckodriver
- name: Checkout
uses: actions/checkout@v2

Expand Down Expand Up @@ -233,7 +243,7 @@ jobs:
- name: Run tests for ${{ matrix.module }}
run: |
export PATH="$PATH:$GECKOWEBDRIVER"
export PATH="$PATH:$PWD/geckodriver"
coverage run --source='.' manage.py test -v=2 --keepdb --settings zds.settings.ci_test ${{ matrix.module }}
- name: Analyze coverage
Expand Down

0 comments on commit 4cf8019

Please sign in to comment.