[fix] github actions: use ubuntu-20.04 instead of ubuntu-latest

This commit is contained in:
Alexandre Flament 2021-01-14 16:49:17 +01:00
parent f7e11fd722
commit 38090daa29

View file

@ -5,10 +5,10 @@ on: [push, pull_request]
jobs: jobs:
python: python:
name: Python ${{ matrix.python-version }} name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-20.04]
python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8, 3.9]
steps: steps:
- name: Checkout - name: Checkout
@ -46,7 +46,7 @@ jobs:
themes: themes:
name: Themes name: Themes
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -59,7 +59,7 @@ jobs:
documentation: documentation:
name: Documentation name: Documentation
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -92,7 +92,7 @@ jobs:
- documentation - documentation
env: env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
if: env.DOCKERHUB_USERNAME != null if: env.DOCKERHUB_USERNAME != null