Browse Source

Minor CI Improvements (#112)

BentleyJOakes 4 years ago
parent
commit
c71e873f78
1 changed files with 18 additions and 4 deletions
  1. 18 4
      .github/workflows/atompm_test.yml

+ 18 - 4
.github/workflows/atompm_test.yml

@@ -7,6 +7,12 @@ jobs:
     runs-on: ubuntu-latest
     
     steps:
+    
+    - name: install chromium and setuptools
+      run: |
+        sudo DEBIAN_FRONTEND=noninteractive apt-get install -y chromium-browser python3-setuptools
+        sudo apt install python3-pip
+    
     - uses: actions/checkout@v2
     
     - name: npm install
@@ -21,15 +27,23 @@ jobs:
       run: npm ci
       env:
         DETECT_CHROMEDRIVER_VERSION: true
-          
+      
+#    - uses: actions/cache@v2
+#      id:   cache
+#      with:
+#        path: ~/.cache/pip
+#        key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+#        restore-keys: |
+#          ${{ runner.os }}-pip-
+      
     - name: install igraph
+#      if: steps.cache.outputs.cache-hit != 'true'
       run: |
-        sudo apt-get install python3-setuptools
-        pip3 install wheel
+        pip3 install six wheel
         pip3 install --user python-igraph
       
     - name: run tests
       run: |
-        google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
+        chromium --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
         xvfb-run --server-args="-screen 0 2880x1800x24" ./run_tests.sh