Skip to content

Commit

Permalink
💚 [#1] fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Feb 9, 2024
1 parent de81826 commit a68eabb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: $
python-version: ${{ matrix.python }}

- name: Install dependencies
run: pip install tox tox-gh-actions

- name: Run tests
run: tox
env:
PYTHON_VERSION: $
DJANGO: $
PYTHON_VERSION: ${{ matrix.python }}
DJANGO: ${{ matrix.django }}

- name: Publish coverage report
uses: codecov/codecov-action@v3
Expand Down Expand Up @@ -61,4 +61,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: $
password: ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
run: pip install tox
- run: tox
env:
TOXENV: $
TOXENV: ${{ matrix.toxenv }}
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{310,311,312}-django{42}
py{310,311,312}-django{32}
isort
black
flake8
Expand All @@ -15,7 +15,7 @@ python =

[gh-actions:env]
DJANGO =
4.2: django42
3.2: django32

[testenv]
setenv =
Expand All @@ -25,7 +25,7 @@ extras =
tests
coverage
deps =
django42: Django~=4.2.0
django32: Django~=3.2.0
commands =
py.test tests \
--cov --cov-report xml:reports/coverage-{envname}.xml \
Expand Down

0 comments on commit a68eabb

Please sign in to comment.