Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Switch to ubuntu-latest for builds #179

Merged
merged 4 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:

jobs:
run_tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.11'
- '3.12'
TOX_ENV:
- csslint
- eslint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
push:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def is_requirement(line):

setup(
name='xblock-sql-grader',
version='0.6.0',
version='1.0.0',
description='SQL Grader XBlock', # TODO: write a better description.
license='AGPLv3',
long_description=README,
Expand Down Expand Up @@ -154,7 +154,7 @@ def is_requirement(line):
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
)
65 changes: 32 additions & 33 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,102 +1,101 @@
[tox]
envlist =
envlist =
csslint
eslint
py{38, 311}-django{42}quality
py{311,312}-django{42},quality

[testenv]
deps =
deps =
-rrequirements/test.txt
-e git+https://github.com/openedx/[email protected]\#egg=codejail
django42: Django>=4.2,<4.3
commands =

commands =
coverage run manage.py test
coverage report
coverage html

[testenv:clean]
commands =
commands =
coverage erase
skip_install = True

[testenv:csslint]
allowlist_externals = {toxinidir}/node_modules/csslint/dist/cli.js
passenv =
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
commands =
{toxinidir}/node_modules/csslint/dist/cli.js sql_grader/static/
deps =
deps =
skip_install = True

[testenv:eslint]
allowlist_externals = {toxinidir}/node_modules/eslint/bin/eslint.js
passenv =
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
commands =
{toxinidir}/node_modules/eslint/bin/eslint.js sql_grader/static/view.js
deps =
deps =
skip_install = True

[testenv:quality]
passenv =
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
deps =
deps =
-rrequirements/quality.txt
commands =
commands =
pycodestyle sql_grader/
pylint sql_grader/

[testenv:translations_push]
deps =
deps =
transifex-client
commands =
commands =
tx push -s

[testenv:translations_pull]
deps =
deps =
edx-i18n-tools==1.3.0
transifex-client
commands =
commands =
cd sql_grader && i18n_tool transifex pull
allowlist_externals =
allowlist_externals =
cd

[testenv:translations_compile]
deps =
deps =
edx-i18n-tools==1.3.0
commands =
commands =
cd sql_grader && i18n_tool generate
allowlist_externals =
allowlist_externals =
cd

[testenv:translations_dummy]
deps =
deps =
edx-i18n-tools==1.3.0
commands =
commands =
cd sql_grader && i18n_tool dummy
allowlist_externals =
allowlist_externals =
cd

[testenv:translations_detect_changed]
deps =
deps =
edx-i18n-tools==1.3.0
commands =
commands =
cd sql_grader && i18n_tool changed
allowlist_externals =
allowlist_externals =
cd

[testenv:translations_extract]
deps =
deps =
edx-i18n-tools==1.3.0
commands =
commands =
cd sql_grader && i18n_tool extract
allowlist_externals =
allowlist_externals =
cd

Loading