This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
chore: Upgrade Python requirements #727
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
name: Python CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
run_tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
python-version: ['3.12'] | |
toxenv: [django42] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Set display to virtual frame buffer | |
run: export DISPLAY=:99.0 | |
- name: Install dependencies | |
run: | | |
pip install -U pip wheel | |
make requirements | |
- name: Run Tests | |
env: | |
TOXENV: ${{ matrix.toxenv }} | |
run: make validate | |
- name: Make Static and Validate Translations | |
env: | |
TOXENV: ${{ matrix.toxenv }} | |
DJANGO_SETTINGS_MODULE: registrar.settings.test | |
run: | | |
sudo apt install gettext | |
make static | |
make validate_translations | |
# - name: Run Coverage | |
# if: matrix.python-version == '3.12' && matrix.toxenv=='django42' | |
# uses: codecov/codecov-action@v1 | |
# with: | |
# flags: unittests | |
# file: ./coverage.xml | |
# fail_ci_if_error: true | |
# token: ${{ secrets.CODECOV_TOKEN }} |