Run lastest version of Ubuntu #82 #87
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8.5 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8.5 | |
- name: Install | |
run: | | |
python setup.py install | |
pip install -r requirements.txt | |
- name: Create env file | |
# Création d'un fichier .env durant le process de CI | |
# Cf https://github.com/armgilles/vcub_keeper/issues/65 | |
run: | | |
touch .env | |
echo KEY_API_BDX=${{ secrets.KEY_API_BDX }} >> .env | |
- name: Run tests | |
run: coverage run -m pytest | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v1 |