Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit b26e0f8

Browse files
committed
build: update toxenv setup
1 parent dc8397c commit b26e0f8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,19 @@ jobs:
3838
if: matrix.python-version == '3.11'
3939
run: docker exec -t analytics_api_testing bash -c "ln -sf /usr/bin/python3.11 /usr/local/bin/python3"
4040

41+
- name: Set TOXENV
42+
id: set-toxenv
43+
run: |
44+
if [[ ${{ matrix.python-version }} == '3.8' ]]; then
45+
echo "::set-output name=toxenv::py38-django42"
46+
elif [[ ${{ matrix.python-version }} == '3.11' ]]; then
47+
echo "::set-output name=toxenv::py311-django42"
48+
fi
49+
4150
- name: Run Tests
42-
run: docker exec -t analytics_api_testing bash -c "cd /edx/app/analytics_api/analytics_api/
43-
&& export TOXENV=django42 && make test.requirements tox.requirements ${{ matrix.targets }}"
51+
run: |
52+
docker exec -t analytics_api_testing bash -c "cd /edx/app/analytics_api/analytics_api/
53+
&& export TOXENV=${{ steps.set-toxenv.outputs.toxenv }} && make test.requirements tox.requirements ${{ matrix.targets }}"
4454
4555
- name: Run Coverage
4656
if: matrix.python-version == '3.8' && matrix.targets=='main.test'

0 commit comments

Comments
 (0)