Skip to content

Commit c709154

Browse files
committed
initial commit
0 parents  commit c709154

29 files changed

+1489
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in Django Num2Fa
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
**Bug description**
10+
<!-- A clear and concise description of what the bug is. Don't be afraid to include a lot of context and as much background information as possible. If applicable, add screenshots to help explain your problem. -->
11+
<!-- Also include relevant error logs -->
12+
13+
**How to reproduce**
14+
<!-- Include the FULL, EXACT command that you are running and that is causing an error. Also include the FULL, EXACT command output that you see in the console. THIS IS ESPECIALLY IMPORTANT! Thank you :) -->
15+
16+
**Environment**
17+
<!-- Include your OS (e.g. Mac OS, Ubuntu 18.04...) and the num2fa version that you use, which can be obtained with `num2fa --version`. -->
18+
19+
**Additional context**
20+
<!-- Add any other context about the problem here.-->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest or encourage the addition of a new feature to Django Num2Fa
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
<!-- A clear description of what the problem is. Feel free to include as much background information as possible here. It's important that we understand the deeper motivations behind a feature request in order to provide the best possible solution. Ex. "I'm always frustrated when [...]. This is because at my company we do [...]. This is a business requirement because [...]." -->
12+
13+
**Describe the solution you'd like**
14+
<!-- A clear description of what you want to happen -->
15+
16+
**Describe alternatives you've considered**
17+
<!-- A clear and concise description of any alternative solutions or features you've considered.-->
18+
19+
**Additional context**
20+
<!-- Add any other context or screenshots about the feature request here.-->

.github/workflows/release.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This script can be tested locally with act:
2+
#
3+
# act --secret GITHUB_TOKEN=... --job release
4+
#
5+
# https://github.com/nektos/act/
6+
# To generate a token: https://github.com/settings/tokens (add r/w permissions for "Contents")
7+
name: Release
8+
9+
on:
10+
push:
11+
tags:
12+
- '*'
13+
workflow_dispatch:
14+
15+
jobs:
16+
release:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
include:
21+
# https://github.com/actions/runner-images#available-images
22+
- os: ubuntu-20.04
23+
locale: C.UTF-8
24+
env:
25+
LC_ALL: ${{ matrix.locale }}
26+
LANG: ${{ matrix.locale }}
27+
steps:
28+
##### Setup environment
29+
# https://github.com/actions/checkout
30+
- uses: actions/checkout@v3
31+
- name: Set up Python
32+
# https://github.com/actions/setup-python
33+
uses: actions/setup-python@v3
34+
with:
35+
python-version: 3.8
36+
cache: 'pip'
37+
cache-dependency-path: requirements/dev.txt
38+
- name: Upgrade pip and setuptools
39+
# https://pypi.org/project/pip/
40+
# https://pypi.org/project/setuptools/
41+
# https://pypi.org/project/wheel/
42+
run: python -m pip install --upgrade pip setuptools==65.6.3 wheel
43+
- name: Print info about the current python installation
44+
run: make ci-info
45+
- name: Install requirements
46+
run: make bootstrap-dev
47+
- name: Check or download gh utility
48+
run: |
49+
if ! which gh; then
50+
echo "Downloading 'gh' utility"
51+
if [ "$(uname -s)" = "Linux" ]; then
52+
curl -L -o gh.tar.gz https://github.com/cli/cli/releases/download/v2.28.0/gh_2.28.0_linux_amd64.tar.gz
53+
tar xzf gh.tar.gz
54+
mv ./gh_2.28.0_linux_amd64/bin/gh /usr/local/bin/gh
55+
else
56+
curl -L -o gh.zip https://github.com/cli/cli/releases/download/v2.28.0/gh_2.28.0_macOS_amd64.zip
57+
unzip xzf gh.zip
58+
mv ./gh_2.28.0_macOS_amd64/bin/gh /usr/local/bin/gh
59+
fi
60+
which gh
61+
fi
62+
63+
##### Create release on GitHub
64+
- name: Create or update GitHub release
65+
run: scriv github-release --repo=codewithemad/django-num2fa
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [master, main, nightly]
6+
pull_request:
7+
branches: [master, main, nightly]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Upgrade pip
23+
run: python -m pip install --upgrade pip setuptools
24+
- name: Install dependencies
25+
run: make bootstrap-dev
26+
- name: Run tox
27+
run: tox

0 commit comments

Comments
 (0)