Skip to content

Commit

Permalink
Simplify min version computation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoH2O1999 committed May 20, 2024
1 parent a06c666 commit 5a82e09
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import semver from 'semver';

const toolName = 'Python';

const testedLabels = ['ubuntu-22.04', 'windows-2022', 'macos-14'];

const minSupportedVersion =
semver
.minVersion(semver.validRange('3.7', {includePrerelease: true}) || '*')
?.toString() || '0.0.0-0';
const minSupportedVersion = '3.7.0-0';

export {testedLabels, toolName, minSupportedVersion};

export enum InputNames {
Expand Down

0 comments on commit 5a82e09

Please sign in to comment.